{"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-49352 exists.","fix":"Upgrade 9router to 0.4.45 or later.","what":"CVE-2026-49352 is a critical vulnerability in decolua 9router, published on 15 Jul 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-49352 and fix it if it is affected.\n\nWhat it is: CVE-2026-49352 is a critical vulnerability in decolua 9router, published on 15 Jul 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-49352 exists.\n\nAffected packages and fixed versions:\n- 9router (npm): affected from 0.2.21; fixed in 0.4.45\n- 9router (npm): affected from 0.2.21; fixed in 0.4.45\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-49352/ (Markdown: https://insights.sbomify.com/CVE-2026-49352/index.md)","id":"CVE-2026-49352","markdown":"https://insights.sbomify.com/CVE-2026-49352/index.md","name":"CVE-2026-49352","record":{"aliases":["GHSA-jphh-m39h-6gwx"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["security_bypass","account_takeover"],"network_reachable":"yes","non_default_config":true,"product_category":"AI router application","requires_auth":"none","summary":"Attackers can bypass authentication and take over accounts by forging JWT tokens using a hardcoded default secret when the environment variable is unset.","user_interaction":"not_required","vuln_class":"hardcoded_credentials"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":9.8,"severity":"critical","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-798","name":"Use of Hard-coded Credentials"}],"description":"9Router is an AI router \u0026 token saver. From 0.2.21 until 0.4.44, 9Router used the hardcoded fallback JWT secret 9router-default-secret-change-me in src/app/api/auth/login/route.js, src/middleware.js, and later src/lib/auth/dashboardSession.js, allowing attackers to forge an auth_token cookie when JWT_SECRET was unset. This issue is fixed in version 0.4.44","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":"2026-07-06","github_poc":1,"max_poc_stars":1,"metasploit":0,"nuclei":0,"refs":[{"date":"2026-07-06T12:37:11Z","kind":"github_poc","ref":"https://github.com/covepseng/cve-2026-49352-poc","stars":1,"title":"Exploitability PoC for CVE-2026-49352 (9router Hardcoded JWT Secret Authentication Bypass)"}],"tier":"weaponised"},"has_fix":true,"headline":"9Router: Hardcoded Default fallback JWT Secret Allows Authentication Bypass","id":"CVE-2026-49352","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"hardcoded_credentials","year":"2026"},"n_packages":2,"n_references":3,"next":{"headline":"9Router: Local-Only Access Gate Bypass in 9router via Host Header SpoofING","id":"CVE-2026-49353"},"packages":[{"ecosystem":"npm","fixed":["0.4.45"],"introduced":["0.2.21"],"last_affected":[],"package":"9router","purl":null,"source":"GHSA-jphh-m39h-6gwx"},{"ecosystem":"npm","fixed":["0.4.45"],"introduced":["0.2.21"],"last_affected":[],"package":"9router","purl":"pkg:npm/9router","source":"GHSA-jphh-m39h-6gwx"}],"prev":{"headline":"regclient may leak authentication credentials to external blob stores","id":"CVE-2026-49349"},"products":["9router"],"published":"2026-07-15","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":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"yes","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-07-16","vendors":["decolua"]},"summary":"Attackers can bypass authentication and take over accounts by forging JWT tokens using a hardcoded default secret when the environment variable is unset.","url":"https://insights.sbomify.com/CVE-2026-49352/"}