Summary
CVE-2026-116485 is a critical authentication bypass (CWE-306, Missing Authentication for Critical Function) in danmu_api by huangxd-. Unauthenticated attackers can modify the server’s environment configuration when the default TOKEN is in use and ADMIN_TOKEN is not set. The CVSS v4.0 score is 9.3 (Critical).
Technical details
- Root cause: Missing authentication on the environment configuration endpoints. When the default
TOKENis used andADMIN_TOKENis unset, the endpoints can be reached without valid administrative authentication. - Trigger conditions: The deployment uses the default
TOKENand has noADMIN_TOKENconfigured. - Attack vector: Network. An unauthenticated attacker sends POST requests to the environment endpoints. No user interaction is required.
- Impact: An attacker can set administrative tokens and lock out legitimate operators. They can also redirect server URLs, which enables SSRF, and trigger redeployment of the server.
Affected software
- danmu_api (huangxd-/danmu_api): all versions before 1.21.7
Severity
- CVSS v4.0: 9.3 (Critical). Vector:
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N - CVSS v3.1: 9.8 (Critical). Vector:
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Mitigation and recommended actions
- Immediate: upgrade danmu_api to version 1.21.7 or later.
- No official workarounds are documented. Until you can upgrade, you can restrict network access to the service. Also review the configuration for default
TOKENvalues and unsetADMIN_TOKEN, and check for unexpected changes to the environment configuration or administrative tokens.

