{"answers":{"affected":"2 open source packages ship an affected version, including 9router.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-56681 exists.","fix":"Upgrade 9router to 0.5.8 or later.","what":"CVE-2026-56681 is a high-severity authentication bypass vulnerability in decolua 9router, published on 22 Sep 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-56681 and fix it if it is affected.\n\nWhat it is: CVE-2026-56681 is a high-severity authentication bypass vulnerability in decolua 9router, published on 22 Sep 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-56681 exists.\n\nAffected packages and fixed versions:\n- 9router (npm): affected all versions; fixed in 0.5.8\n- 9router (npm): affected all versions; fixed in 0.5.8\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-56681/ (Markdown: https://insights.sbomify.com/CVE-2026-56681/index.md)","id":"CVE-2026-56681","markdown":"https://insights.sbomify.com/CVE-2026-56681/index.md","name":"CVE-2026-56681","record":{"aliases":["GHSA-5mj8-gf6m-fhw8"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["security_bypass","data_read"],"network_reachable":"yes","non_default_config":true,"product_category":"AI router server","requires_auth":"none","summary":"Remote attackers can bypass API key validation by spoofing the X-9r-Real-Ip header to access LLM providers and consume credits.","user_interaction":"not_required","vuln_class":"auth_bypass"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":7.3,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","version":"3.1"},"cwes":[{"id":"CWE-807","name":"Reliance on Untrusted Inputs in a Security Decision"}],"description":"9Router is an AI router \u0026 token saver. Prior to 0.5.6, 9Router deployments that allow requests to reach Next.js without the sanitizing custom-server.js wrapper trust the client-supplied X-9r-Real-Ip header in src/dashboardGuard.js when isLocalRequest decides whether canAccessPublicLlmApi may skip API-key validation for /api/v1/* routes. A remote unauthenticated attacker can set X-9r-Real-Ip to 127.0.0.1 and be classified as a local client, including on the verified GET /api/v1/models route. This permits unauthorized use of the instance owner's configured LLM providers, consumption of paid credits, and enumeration of configured providers and models. This issue is fixed in version 0.5.6.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":1,"refs":[{"date":null,"kind":"nuclei","ref":"http/cves/2026/CVE-2026-56681.yaml","stars":null,"title":"9router \u003c=0.5.4 - Authentication Bypass"}],"tier":"weaponised"},"has_fix":true,"headline":"9Router: Authentication Bypass in Public LLM API via Spoofable X-9r-Real-Ip Header","id":"CVE-2026-56681","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"auth_bypass","year":"2026"},"n_packages":2,"n_references":3,"next":{"headline":"9Router: Login Brute-Force Lockout Bypass via Spoofable X-9r-Real-Ip Header","id":"CVE-2026-56682"},"packages":[{"ecosystem":"npm","fixed":["0.5.8"],"introduced":["0"],"last_affected":[],"package":"9router","purl":null,"source":"GHSA-5mj8-gf6m-fhw8"},{"ecosystem":"npm","fixed":["0.5.8"],"introduced":["0"],"last_affected":[],"package":"9router","purl":"pkg:npm/9router","source":"GHSA-5mj8-gf6m-fhw8"}],"prev":{"headline":"9Router: Mass assignment in PATCH /api/settings allows authenticated authorization downgrade","id":"CVE-2026-56679"},"products":["9router"],"published":"2026-09-22","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"attribution","licence":"MIT","name":"Nuclei templates"}],"ssvc":{"automatable":"yes","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-09-28","vendors":["decolua"]},"summary":"Remote attackers can bypass API key validation by spoofing the X-9r-Real-Ip header to access LLM providers and consume credits.","url":"https://insights.sbomify.com/CVE-2026-56681/"}