CVE-2026-56681 Details
Description
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.
A vulnerability in 9Router versions prior to 0.5.6 allows remote, unauthenticated attackers to bypass API key requirements on the public LLM API. This is achieved by spoofing the X-9r-Real-Ip header to 127.0.0.1, tricking the server into thinking the request is coming from a local client. The issue arises in deployments that do not use the custom-server.js wrapper, which normally sanitizes and secures the header. As a result, attackers can gain unauthorized access to the instance owner's LLM provider resources, consume paid credits, and enumerate available models and providers.
Users are advised to update to 9Router version 0.5.6 or later, and to avoid trusting the X-9r-Real-Ip header when it is received directly from clients. Instead, derive the client address from a trusted transport-level source, such as req.socket.remoteAddress. If the custom-server.js is required for the security model, ensure that any inbound X-9r- headers are stripped or rejected before reaching the application.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Sep 22, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/decolua/9router/commit/efd20be8d81ef2e256a7037f3aa78e6b567b5fd3 | [email protected] | Source CodeVendor |
| https://github.com/decolua/9router/releases/tag/v0.5.6 | [email protected] | Release NotesVendor |
| https://github.com/decolua/9router/security/advisories/GHSA-5mj8-gf6m-fhw8 | [email protected] | AdvisoryExploitRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-807 | Reliance on Untrusted Inputs in a Security Decision | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| decolua 9router | 0.5.4 (semver) |
CPE
Remediation
| |
Change History
1 change record found show changes
| Date | Action | Recorded By |
|---|---|---|
| Sep 22, 2026 | New CVE Received | [email protected] |
Volerion