Skip to main content

9Router EUVDEUVD-2026-84541

| CVE-2026-56681 HIGH
Reliance on Untrusted Inputs in a Security Decision (CWE-807)
2026-09-22 GitHub_M GHSA-5mj8-gf6m-fhw8
7.3
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Reach Next.js API without wrapper
  2. Delivery
    Send GET /api/v1/models (get 401)
  3. Exploit
    Add header X-9r-Real-Ip: 127.0.0.1
  4. Execution
    isLocalRequest() returns true, API-key check skipped
  5. Impact
    Abuse owner's LLM providers and paid credits

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V2 - Validation and Business Logic Trusted input validation
Exploitation Conditions

Exploitable only when the instance is deployed in a mode where requests reach Next.js directly WITHOUT the bundled custom-server.js wrapper (which normally derives the client IP from the unspoofable TCP socket and strips any inbound X-9r-Real-Ip), AND the LLM API (/api/v1/*) is network-reachable to the attacker (default bind is 0.0.0.0). Given those, no authentication or user interaction is required (PR:N, UI:N): the attacker simply adds the header X-9r-Real-Ip: 127.0.0.1. Instances correctly served through custom-server.js are not exploitable, which is the primary factor limiting real-world exposure; verified affected route is GET /api/v1/models.

Impact

The CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L = 7.3) describes a network-reachable, low-complexity, unauthenticated bypass with low impact across all three dimensions, which matches the description: a remote unauthenticated attacker spoofs X-9r-Real-Ip: 127.0.0.1 to be treated as a loopback client and skip API-key validation on /api/v1/*. CWE-807 (reliance on untrusted input for a security decision) is the correct and precise root cause. No EPSS score, KEV listing, or SSVC decision data was provided, so exploitation-probability and automatability signals cannot be weighed. Publicly available exploit code exists: the GHSA advisory includes a step-by-step attack scenario and a Proof of Concept section with request screenshots, but POC availability is NOT active exploitation. The single most important caveat is a real-world limiting condition the raw score does not encode - exploitation only works in deployment modes where requests reach Next.js WITHOUT the sanitizing custom-server.js wrapper; correctly-deployed instances behind that wrapper (which derives the IP from the unspoofable socket address and strips inbound copies) are not affected. There is also a version discrepancy: the CVE description states the fix is 0.5.6, while the GHSA advisory states vulnerable <= 0.5.4 and fixed in 0.5.8 - verify the true fixed version with the vendor before remediating. Net: a genuine, easily-triggered authz bypass but low technical impact (LLM credit abuse and provider/model enumeration, not host compromise) on a niche product, making this a moderate, not top-tier, priority.

Exploit ScenarioDerived

A 9Router instance is deployed without the custom-server.js wrapper (e.g., serving Next.js directly) with the default 0.0.0.0 bind, so its /api/v1/* LLM API is remotely reachable. An attacker sends GET /api/v1/models, receives 401, then resends the identical request with the single added header X-9r-Real-Ip: 127.0.0.1 and receives 200 OK - gaining unauthenticated use of the owner's configured LLM providers, consuming their paid credits, and enumerating providers/models. Public proof-of-concept steps and screenshots are included in the GHSA advisory.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
1 public PoC Patch available 0.5% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Sep 22, 2026

Authentication bypass in 9Router (npm package '9router') before 0.5.6 lets a remote, unauthenticated attacker reach the public LLM API under /api/v1/* by simply adding the header X-9r-Real-Ip: 127.0.0.1, which the application's isLocalRequest() logic in src/dashboardGuard.js trusts when deciding whether canAccessPublicLlmApi() may skip API-key validation. Successful abuse grants unauthorized use of the instance owner's configured LLM providers, consumption of paid credits, and enumeration of configured providers and models; the verified affected route is GET /api/v1/models. Per the assessed vector (AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L, 7.3), no authentication or user interaction is required, but exploitation is only possible on deployments where requests reach Next.js directly without the bundled custom-server.js wrapper and where the LLM API is network-reachable (the default bind is 0.0.0.0); instances correctly served through custom-server.js are not exploitable. The vendor advisory includes a proof-of-concept showing a 401 baseline request succeeding with 200 OK after the sole header is added.

RemediationAI

Upgrade 9Router to a patched release: the vendor advisory GHSA-5mj8-gf6m-fhw8 and release tag v0.5.6 identify 0.5.6 as the fix, while package registry metadata lists 0.5.8 as the fixed version, so deploying 0.5.8 or later is the safest course and the upstream fix is contained in commit efd20be8d81ef2e256a7037f3aa78e6b567b5fd3 (see https://github.com/decolua/9router/releases/tag/v0.5.6). If immediate upgrade is not possible, the most effective compensating control is to restore the intended trust boundary by serving the application exclusively through the bundled custom-server.js wrapper, which derives the client address from the TCP socket and strips inbound X-9r-Real-Ip values - with the caveat that any front-end proxy or load balancer in front of it must itself strip client-supplied X-9r-Real-Ip/X-Real-IP/X-Forwarded-For headers, otherwise the spoofing primitive persists. Additionally, bind the LLM API to loopback or a private management interface and firewall /api/v1/* from untrusted networks, which eliminates the attack path but breaks legitimate remote clients that rely on the public LLM API and requires reconfiguration of any external integrations. Avoid trusting any client-supplied forwarding header for authorization decisions at the reverse proxy tier, since the vulnerability class is precisely that reliance.

Affected VersionsENISA

9router < 0.5.6

Affected Packages

npm 9router fix: 0.5.6, 0.5.8

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in npm

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

9Router is a Node.js/Next.js AI routing and token-saving gateway. Its authorization design assumes a trusted front layer: the bundled custom-server.js wraps http.createServer and derives the client identity from the unspoofable TCP socket address (req.socket.remoteAddress), writing that value into the internal X-9r-Real-Ip header and stripping any inbound copy so downstream Next.js code can rely on it. When the app is instead served in a mode where requests hit Next.js directly - the advisory tested 9router-app 0.5.4 on Next.js 16.2.9 - the wrapper never executes, the attacker-supplied header passes through unchanged, and src/dashboardGuard.js:isLocalRequest() reads X-9r-Real-Ip and treats any loopback value (127.0.0.1) as a local origin. canAccessPublicLlmApi() then returns true and the API-key check on /api/v1/* routes is skipped entirely. This is CWE-807, Reliance on Untrusted Inputs in a Security Decision: a security control keys off a client-controllable HTTP header rather than a verifiable transport attribute. The upstream fix in commit efd20be8d81ef2e256a7037f3aa78e6b567b5fd3 reworks custom-server.js so forwarding headers are honored only when the TCP peer itself is a loopback reverse proxy (127.0.0.1, ::1, or ::ffff:127.0.0.1); for all direct/public sockets the connection remains keyed by the unspoofable peer address, restoring the trust boundary.

Know when 9Router gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (GitHub_M) PRIMARY 7.3 HIGH
AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
vuln.today AI 7.3 HIGH

Remote unauthenticated header spoof (AV:N/AC:L/PR:N/UI:N); low impact - provider/model enumeration (C:L), unauthorized LLM use (I:L), and paid-credit consumption (A:L); wrapper-less deployment is environmental, not attacker complexity.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
Low
Availability
Low

Lifecycle Timeline

2
Patch available
Sep 22, 2026 - 17:17 EUVD
CVE Published
Sep 22, 2026 - 16:02 cve.org
HIGH 7.3

DescriptionCVE.org

9Router is an AI router & 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.

Technical POC Analysis

CWE-807: Reliance on Untrusted Inputs in a Security Decision.

Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.

Latest POC

1 public PoC link from nuclei

Sign in to open the public PoC links collected for this CVE.

Executive ViewAI

Why It Matters

9Router (npm package '9router') before version 0.5.6 contains an authentication bypass that allows remote, unauthenticated attackers to access the public LLM API and consume an organization's paid LLM credits, as well as enumerate configured providers and models. No public exploit identified at time of analysis, and no vendor-released patch identified at time of analysis. This affects any deployment where the LLM API is network-reachable and not served through the bundled custom-server.js wrapper, potentially leading to unexpected costs and exposure of AI infrastructure details; leadership should prioritize network restrictions and credential rotation.

Business Impact: High
Compensating Controls

Restrict network access to LLM API endpoints (bind to localhost or internal interfaces, block external access to /api/v1/*), ensure requests are served through the bundled custom-server.js wrapper, strip or reject the X-9r-Real-Ip header at a reverse proxy or WAF, audit and rotate LLM provider credentials, and monitor vendor advisory for patched version.

Threat Model

4 threats: Spoofing, Elevation of Privilege, Information Disclosure and 1 more

5-step attack chain with trust boundaries and controls

Full threat model - attack chain, trust boundaries, controls per stage and evidence - is part of the Pro and Business plans.

Threat Intelligence Overview

EPSS Score
0.5%
Top 57% exploitable
Prevalence
Rare
obscure single-maintainer npm AI-router project, minimal production footprint
Threat Intel
1
1 sources
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC Yes
EPSS 0.5%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
Poc
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
High

Priority Score

57
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +36
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

CVE-2026-59801 CRITICAL POC
9.3 Jul 13

Unauthenticated CRUD on the provider-management API in 9Router (through 0.4.41) lets remote attackers with no credential

CVE-2026-56679 HIGH POC
8.7 Jul 15

Authentication bypass in 9Router (AI router & token saver) prior to 0.5.4 lets any authenticated user disable applicatio

CVE-2026-55638 HIGH POC
8.6 Jul 10

Authorization-gate bypass in 9Router (decolua/9router) before 0.5.2 lets a remote unauthenticated attacker reach protect

CVE-2026-56677 HIGH POC
8.6 Aug 17

Server-Side Request Forgery (SSRF) in 9Router 0.5.4 and earlier allows unauthenticated remote attackers to probe interna

CVE-2026-56675 HIGH POC
8.3 Jul 10

Authentication bypass in 9Router (decolua/9router) versions prior to 0.5.2 lets remote unauthenticated attackers reach p

CVE-2026-55641 HIGH POC
8.2 Jul 10

Authentication bypass in 9Router (decolua/9router) before 0.5.2 lets a remote unauthenticated attacker forge a 'Host: lo

CVE-2026-56676 HIGH POC
7.4 Jul 10

Server-side request forgery via DNS rebinding in 9Router (decolua/9router) before 0.5.2 allows an authenticated LLM-prox

CVE-2026-56678 MEDIUM POC
6.4 Jul 15

Server-side request forgery (SSRF) in 9Router's Kiro API-key validation endpoint allows authenticated attackers to redir

CVE-2026-63732 CRITICAL
9.4 Jul 23

Remote unauthenticated code execution in 9router 0.4.59 (by decolua) lets an attacker chain three flaws - a hardcoded de

CVE-2026-5842 MEDIUM POC
5.5 Apr 09

Remote authorization bypass in decolua 9router up to version 0.3.47 allows unauthenticated network attackers to access t

CVE-2026-62327 CRITICAL
9.3 Jul 13

Unauthenticated API key disclosure in 9Router (npm package '9router' by decolua) through version 0.4.41 lets any remote

CVE-2026-56682 MEDIUM POC
5.3 Sep 22

Improper restriction of excessive authentication attempts (CWE-307) in the 9Router AI router package (decolua/9router) b

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy