{"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-46339 exists.","fix":"Upgrade 9router to 0.4.37 or later.","what":"CVE-2026-46339 is a critical command injection 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-46339 and fix it if it is affected.\n\nWhat it is: CVE-2026-46339 is a critical command injection 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-46339 exists.\n\nAffected packages and fixed versions:\n- 9router (npm): affected from 0.4.30; fixed in 0.4.37\n- 9router (npm): affected from 0.4.30; fixed in 0.4.37\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-46339/ (Markdown: https://insights.sbomify.com/CVE-2026-46339/index.md)","id":"CVE-2026-46339","markdown":"https://insights.sbomify.com/CVE-2026-46339/index.md","name":"CVE-2026-46339","record":{"aliases":["GHSA-fhh6-4qxv-rpqj"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"AI router middleware","requires_auth":"none","summary":"Unauthenticated attackers can execute arbitrary commands via unprotected MCP plugin routes in 9Router, requiring an upgrade to secure the application.","user_interaction":"not_required","vuln_class":"command_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":10,"severity":"critical","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command"},{"id":"CWE-306","name":"Missing Authentication for Critical Functionality"}],"description":"9Router is an AI router \u0026 token saver. From 0.4.30 until 0.4.37, 9Router's src/proxy.js middleware did not protect /api/cli-tools/* and /api/mcp/*, allowing unauthenticated registration of customPlugins through src/app/api/cli-tools/cowork-settings/route.js and command execution through the MCP bridge. This vulnerability is fixed in 0.4.37.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":"2026-08-28","github_poc":1,"max_poc_stars":0,"metasploit":0,"nuclei":1,"refs":[{"date":"2026-08-28T10:58:38Z","kind":"github_poc","ref":"https://github.com/SimoesCTT/CTT-Enhanced-CVE-2026-46339-Exploit-Engine","stars":0,"title":"A specialized Python framework that executes unauthenticated remote code execution via the 9Router Model Context Protocol (MCP) bridge by deploying a 33-layer temporal phase cascade, Riemann-Hadamard dispersion, and an 11 ns wedge filter to bypass traditional proxy and process-monitoring defenses."},{"date":null,"kind":"nuclei","ref":"http/cves/2026/CVE-2026-46339.yaml","stars":null,"title":"9Router \u003c= 0.4.36 - Unauthenticated RCE"}],"tier":"weaponised"},"has_fix":true,"headline":"9Router: Unauthenticated Remote Code Execution via unprotected MCP custom plugin routes","id":"CVE-2026-46339","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"command_injection","year":"2026"},"n_packages":2,"n_references":2,"next":{"headline":"Netty: SCTP reassembly nests buffers without bound","id":"CVE-2026-46340"},"packages":[{"ecosystem":"npm","fixed":["0.4.37"],"introduced":["0.4.30"],"last_affected":[],"package":"9router","purl":null,"source":"GHSA-fhh6-4qxv-rpqj"},{"ecosystem":"npm","fixed":["0.4.37"],"introduced":["0.4.30"],"last_affected":[],"package":"9router","purl":"pkg:npm/9router","source":"GHSA-fhh6-4qxv-rpqj"}],"prev":{"headline":"Regression in pymdownx.snippets reintroduces sibling-prefix path traversal bypass despite restrict_base_path","id":"CVE-2026-46338"},"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":"attribution","licence":"MIT","name":"Nuclei templates"},{"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":"Unauthenticated attackers can execute arbitrary commands via unprotected MCP plugin routes in 9Router, requiring an upgrade to secure the application.","url":"https://insights.sbomify.com/CVE-2026-46339/"}