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

CVE-2026-56681: 9Router has an Authentication Bypass in Public LLM API via Spoofable X-9r-Real-Ip Header

September 22, 2026

9router determines whether an incoming request originates from localhost by trusting the X-9r-Real-Ip HTTP request header. This header is intended to be produced and sanitized exclusively by the bundled custom-server.js layer from the TCP socket address. In deployment modes where requests reach Next.js directly (the header is never stripped/regenerated), a remote, unauthenticated attacker can simply send X-9r-Real-Ip: 127.0.0.1 and be treated as a local client. This bypasses the API-key requirement on the public LLM API (/api/v1/*), granting unauthenticated access to the instance owner’s configured provider resources.

References

  • github.com/advisories/GHSA-5mj8-gf6m-fhw8
  • github.com/decolua/9router/commit/efd20be8d81ef2e256a7037f3aa78e6b567b5fd3
  • github.com/decolua/9router/releases/tag/v0.5.6
  • github.com/decolua/9router/security/advisories/GHSA-5mj8-gf6m-fhw8
  • nvd.nist.gov/vuln/detail/CVE-2026-56681

Code Behaviors & Features

Detect and mitigate CVE-2026-56681 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 before 0.5.8

Fixed versions

  • 0.5.8

Solution

Upgrade to version 0.5.8 or above.

Impact 7.3 HIGH

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

Learn more about CVSS

Weakness

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

Source file

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

Spotted a mistake? Edit the file on GitLab.

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

Page generated Wed, 07 Oct 2026 12:17:43 +0000.