Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessReach Next.js API without wrapper
-
DeliverySend GET /api/v1/models (get 401)
-
ExploitAdd header X-9r-Real-Ip: 127.0.0.1
-
ExecutionisLocalRequest() returns true, API-key check skipped
-
ImpactAbuse 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
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.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
2DescriptionCVE.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
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.
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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.
Unauthenticated CRUD on the provider-management API in 9Router (through 0.4.41) lets remote attackers with no credential
Authentication bypass in 9Router (AI router & token saver) prior to 0.5.4 lets any authenticated user disable applicatio
Authorization-gate bypass in 9Router (decolua/9router) before 0.5.2 lets a remote unauthenticated attacker reach protect
Server-Side Request Forgery (SSRF) in 9Router 0.5.4 and earlier allows unauthenticated remote attackers to probe interna
Authentication bypass in 9Router (decolua/9router) versions prior to 0.5.2 lets remote unauthenticated attackers reach p
Authentication bypass in 9Router (decolua/9router) before 0.5.2 lets a remote unauthenticated attacker forge a 'Host: lo
Server-side request forgery via DNS rebinding in 9Router (decolua/9router) before 0.5.2 allows an authenticated LLM-prox
Server-side request forgery (SSRF) in 9Router's Kiro API-key validation endpoint allows authenticated attackers to redir
Remote unauthenticated code execution in 9router 0.4.59 (by decolua) lets an attacker chain three flaws - a hardcoded de
Remote authorization bypass in decolua 9router up to version 0.3.47 allows unauthenticated network attackers to access t
Unauthenticated API key disclosure in 9Router (npm package '9router' by decolua) through version 0.4.41 lets any remote
Improper restriction of excessive authentication attempts (CWE-307) in the 9Router AI router package (decolua/9router) b
EUVD-2026-84541
GHSA-5mj8-gf6m-fhw8
NVD
CVE.org
EPSS
Exploit-DB