{"id":"CVE-2026-116485","summary":"danmu_api before 1.21.7 Authentication Bypass via Default Token in Env Endpoints","details":"danmu_api before 1.21.7 contains an authentication bypass vulnerability that allows unauthenticated attackers to modify server environment configuration when the default TOKEN is used and ADMIN_TOKEN is unset. Attackers can send POST requests to /api/env/set, /api/env/add, or /api/env/del to set ADMIN_TOKEN, lock out operators, redirect OTHER_SERVER or PROXY_URL for SSRF, and trigger redeployment.","modified":"2026-11-04T02:30:50.037372073Z","published":"2026-10-26T13:08:51.363Z","database_specific":{"cwe_ids":["CWE-306"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/116xxx/CVE-2026-116485.json","unresolved_ranges":[{"extracted_events":[{"range":[{"fixed":"1.21.7"}],"source":"AFFECTED_FIELD","strategy":"StandardRange"}]},{"extracted_events":[{"range":[{"fixed":"1.21.7"}],"source":"DESCRIPTION"}]}],"cna_assigner":"VulnCheck"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/116xxx/CVE-2026-116485.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-116485"},{"type":"ADVISORY","url":"https://www.vulncheck.com/advisories/danmu-api-before-1.21.7-authentication-bypass-via-default-token-in-env-endpoints"},{"type":"REPORT","url":"https://github.com/huangxd-/danmu_api/issues/531"},{"type":"FIX","url":"https://github.com/huangxd-/danmu_api/commit/6e93478064a0ce4e7ed3bc2eae88adaad1b7ab02"},{"type":"PACKAGE","url":"https://github.com/huangxd-/danmu_api"},{"type":"ARTICLE","url":"https://github.com/huangxd-/danmu_api/blob/5ef63a01bae7c4bad4dcd7bafbbcdcf33aa82564/danmu_api/worker.js#L223-L244"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/huangxd-/danmu_api","events":[{"introduced":"0"},{"fixed":"6e93478064a0ce4e7ed3bc2eae88adaad1b7ab02"}],"database_specific":{"extracted_events":[{"range":[{"fixed":"6e93478064a0ce4e7ed3bc2eae88adaad1b7ab02"}],"source":"REFERENCES_COMMIT"}]}}],"versions":["v1.20.10","v1.19.16","v1.18.9","v1.17.7","v1.15.6","v1.14.4","v1.13.8","v1.11.5","v1.9.3","v1.8.1","v1.4.5"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-116485.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V4","score":"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"}]}