{"id":"CVE-2026-116485","kind":"vulnerability","aliases":["CVE-2026-116485"],"related":[],"title":"danmu_api: unauthenticated attackers can rewrite server environment configuration","description":"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.","summary":"danmu_api before 1.21.7 accepts POST requests to its env set, add and delete endpoints when the default TOKEN is in use and ADMIN_TOKEN is unset. An unauthenticated attacker can set ADMIN_TOKEN to lock out operators, redirect OTHER_SERVER or PROXY_URL to enable SSRF, and trigger redeployment.","severity":"critical","cvss":9.8,"epss":null,"exploited":false,"exploited_at":null,"products":[],"ecosystems":[],"tags":["danmu_api","node","other","self-hosted"],"not_affected_if":["default-config","patched"],"how_to_check":"- Check the installed danmu_api version and whether it is below `1.21.7`\n- Check whether the `ADMIN_TOKEN` environment variable is set on the running instance\n- Check whether the instance still uses the default `TOKEN`","fix":"- Upgrade danmu_api to `1.21.7` or later\n- Set a strong `ADMIN_TOKEN` and rotate `TOKEN` if the instance was exposed before patching","status":"open","published_at":"2026-10-26T14:16:37+00:00","first_seen_at":"2026-10-26T14:30:37+00:00","triaged_at":"2026-10-26T14:31:59+00:00","updated_at":"2026-10-26T14:31:59+00:00","category":"other","confidence":0.7,"triage":{"at":"2026-10-26T14:31:59Z","model":"claude-haiku-5-5","output":{"fix":"- Upgrade danmu_api to `1.21.7` or later\n- Set a strong `ADMIN_TOKEN` and rotate `TOKEN` if the instance was exposed before patching","reach":"internet","title":"danmu_api: unauthenticated attackers can rewrite server environment configuration","impact":"high","summary":"danmu_api before 1.21.7 accepts POST requests to its env set, add and delete endpoints when the default TOKEN is in use and ADMIN_TOKEN is unset. An unauthenticated attacker can set ADMIN_TOKEN to lock out operators, redirect OTHER_SERVER or PROXY_URL to enable SSRF, and trigger redeployment.","category":"other","nicknames":[],"who_cares":["danmu_api","self-hosted","node"],"confidence":0.7,"needs_auth":"no","worst_case":"Attacker reconfigures server environment, locks out operators, and enables SSRF","analyst_note":"Confirm the exact affected version range and the fixed release notes from the NVD entry and the project repository; sources give only the 1.21.7 boundary.","how_to_check":"- Check the installed danmu_api version and whether it is below `1.21.7`\n- Check whether the `ADMIN_TOKEN` environment variable is set on the running instance\n- Check whether the instance still uses the default `TOKEN`","needs_analyst":true,"not_affected_if":["default-config","patched"],"who_is_affected":"Instances running danmu_api before 1.21.7 with the default TOKEN and no ADMIN_TOKEN set are exposed to unauthenticated requests to the env endpoints. Systems that were already patched or that set a custom ADMIN_TOKEN are less exposed. Teams not running danmu_api can skip it.","user_interaction":"no","needs_special_setup":"yes","severity_if_unknown":"critical"},"cost_usd":0.000665,"input_tokens":3382,"output_tokens":653,"severity_before":"critical"},"analyst_status":null,"analyst_note":null,"search":"'-116485':12A,15A '-2026':11A,14A '/api/env/add':109C '/api/env/del':111C '/api/env/set':108C '1.21.7':26B,76C 'accept':27B 'add':34B 'admin':46B,55B,98C,114C 'allow':83C 'api':2A,17B,24B,74C 'attack':4A,52B,85C,102C 'authent':79C 'bypass':80C 'configur':9A,90C 'contain':77C 'cve':10A,13A 'danmu':1A,16B,23B,73C 'default':40B,93C 'delet':36B 'enabl':68B 'endpoint':37B 'env':32B 'environ':8A,89C 'host':22B 'lock':58B,116C 'modifi':87C 'node':18B 'oper':60B,118C 'post':28B,105C 'proxi':65B,123C 'redeploy':72B,129C 'redirect':61B,119C 'request':29B,106C 'rewrit':6A 'self':21B 'self-host':20B 'send':104C 'server':7A,63B,88C,121C 'set':33B,54B,113C 'ssrf':69B,126C 'token':41B,47B,56B,94C,99C,115C 'trigger':71B,128C 'unauthent':3A,51B,84C 'unset':49B,101C 'url':66B,124C 'use':44B,96C 'vulner':81C","nicknames":[],"mitigations":[],"who_affected":"Instances running danmu_api before 1.21.7 with the default TOKEN and no ADMIN_TOKEN set are exposed to unauthenticated requests to the env endpoints. Systems that were already patched or that set a custom ADMIN_TOKEN are less exposed. Teams not running danmu_api can skip it.","tier":"B","verified":{},"analyst_revisit_at":null,"first_public_at":"2026-10-26T14:16:37+00:00","kev":null,"cvss_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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","cvss_by":"disclosure@vulncheck.com","poc_count":0,"sources":[{"source":"nvd","external_id":"CVE-2026-116485","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-116485","severity":null,"published_at":"2026-10-26T14:16:37+00:00","modified_at":"2026-10-26T14:16:37+00:00","first_seen_at":"2026-10-26T14:30:37+00:00","fetched_at":"2026-10-26T14:30:37+00:00","note":null}],"documents":[],"notice":"Free to read at a human pace. An API with keys and an MCP server are in preparation; early access: hello@infrastack.ai"}