Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. 9router
  4. ›
  5. CVE-2026-49353

CVE-2026-49353: 9router has an Incomplete Fix: Local-Only Access Gate Bypass in 9router via Host Header SpoofING

July 2, 2026 (updated July 6, 2026)

The fix for CVE-2026-46339 (unauthenticated RCE via unprotected MCP plugin routes) introduced a local-only access gate in src/dashboardGuard.js that restricts spawn-capable routes (/api/mcp/*, /api/tunnel/*, /api/cli-tools/*) to loopback requests. The gate determines “local” by inspecting the Host and Origin HTTP headers rather than the TCP source address. When 9router is deployed behind a reverse proxy, tunnel (Cloudflare Tunnel, Tailscale — both natively supported), or is subject to DNS rebinding, these headers are attacker-controlled, allowing the local-only gate to be bypassed.

A second factor (CLI token or JWT cookie) is required by canAccessLocalOnlyRoute(), but the CLI token is a deterministic HMAC of the machine ID (getConsistentMachineId), which is stable and predictable on cloud VMs. If the attacker can obtain or guess the machine ID (e.g., via another information disclosure, or on shared-tenant infrastructure), the full chain to MCP child process stdin injection is reachable.

This is a variant / incomplete fix of CVE-2026-46339 — the same attack surface (remote → MCP child process stdin) remains reachable under specific but realistic deployment configurations.

References

  • github.com/advisories/GHSA-6g2f-w7g3-77vf
  • github.com/decolua/9router/commit/5e1c1261368e06dced1cbc650684561b2c8844db
  • github.com/decolua/9router/commit/bb86808582067e4fc6f004508a919efb9970d1d5
  • github.com/decolua/9router/security/advisories/GHSA-6g2f-w7g3-77vf
  • nvd.nist.gov/vuln/detail/CVE-2026-49353

Code Behaviors & Features

Detect and mitigate CVE-2026-49353 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions up to 0.4.55

Solution

Unfortunately, there is no solution available yet.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-290: Authentication Bypass by Spoofing

Source file

npm/9router/CVE-2026-49353.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 18 Jul 2026 00:23:19 +0000.