Skip to content

AAK-MCP-9ROUTER-CVE-2026-46339-001: 9Router unauthenticated MCP bridge → command execution (below 0.5.2)

Severity
CRITICAL
Category
Supply Chain (supply-chain)
Scanner
agent_audit_kit/scanners/mcp_cve_pins_2026_07.py
Auto-fixable
No.
SARIF name
NineRouterMcpUnauthRce

What it detects

9Router (9router) before 0.5.2 exposes MCP routes without authentication and reaches command execution: src/proxy.js did not protect /api/cli-tools/* and /api/mcp/*, allowing unauthenticated customPlugin registration and command execution through the MCP bridge (CVE-2026-46339, CVSS 10); the isLocalRequest() gate trusts spoofable Host/Origin headers (CVE-2026-49353); and unvalidated MCP plugin args reach child_process.spawn() for RCE via /api/mcp//sse (CVE-2026-62312). CVE-2026-63732 (CVSS 9.9) re-reports the same default-credential (123456) + spoofed-Host LOCAL_ONLY bypass + unvalidated child_process.spawn() plugin-registration chain on 0.4.59, also remediated by the 0.5.2 floor. Treat < 0.5.2 (and unpinned) as exposed.

How to fix

Upgrade 9router to >= 0.5.2 and pin it. Authenticate /api/mcp/* and /api/cli-tools/*, do not gate on Host/Origin headers, and validate plugin args before spawning subprocesses.

To confirm the finding is gone, report only this rule:

agent-audit-kit scan . --rules AAK-MCP-9ROUTER-CVE-2026-46339-001

Limitations

Reads 9router in requirements*.txt at any depth and, at the project root only, in pyproject.toml, Pipfile, package.json, .mcp.json, mcp.json, claude_desktop_config.json and the Pipfile.lock, poetry.lock, uv.lock, package-lock.json, pnpm-lock.yaml and yarn.lock lockfiles, taking the lowest version a range allows and reporting a reference that states no version. The dependency is not read when it is declared in a sub-directory manifest (packages/app/package.json), in .cursor/mcp.json or .vscode/mcp.json, or in a lockfile format the reader does not parse (a Yarn 2+ yarn.lock). A file over 2 MB, or a lockfile over 32 MiB, is not read. A declaration nested more than 64 levels deep in package.json, a TOML manifest or an MCP config (an MCP server more than 62) is still judged, and reported without a line; a lockfile entry keeps its line at any depth.

References


All rules. This page is generated from the rule registry when the documentation is built; to change it, change the rule in agent_audit_kit/rules/builtin.py. To give the rule a hand-written write-up, add docs/rules/AAK-MCP-9ROUTER-CVE-2026-46339-001.md: the page then shows that text, with the registry reference appended under it.