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

CVE-2026-55638: 9router: Unauthenticated LLM proxy access via /codex rewrite authorization bypass

August 28, 2026

9router exposes an OpenAI/Anthropic-compatible LLM proxy. Remote access to this proxy is intended to be protected by an API-key check in the Next.js middleware.

However, 9router also defines a rewrite that maps /codex/* to the backend LLM endpoint /api/v1/responses. The middleware authorization decision is made on the incoming request path before the rewrite is applied. Because /codex is not included in the middleware’s protected LLM API prefix list, requests to /codex/* bypass the API-key gate and are later rewritten to the same backend used by /api/v1/responses.

As a result, an unauthenticated remote attacker can access the LLM proxy through /codex/* and cause the server to make upstream provider calls using the operator-stored LLM provider credentials.

References

  • github.com/advisories/GHSA-8gmq-j984-vp4r
  • github.com/decolua/9router/commit/b282f0554972ea35281520738759d76abcd0b0b3
  • github.com/decolua/9router/releases/tag/v0.5.2
  • github.com/decolua/9router/security/advisories/GHSA-8gmq-j984-vp4r
  • nvd.nist.gov/vuln/detail/CVE-2026-55638

Code Behaviors & Features

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

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 0.5.2

Fixed versions

  • 0.5.2

Solution

Upgrade to version 0.5.2 or above.

Impact 8.6 HIGH

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

Learn more about CVSS

Weakness

  • CWE-862: Missing Authorization
  • CWE-863: Incorrect Authorization

Source file

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

Spotted a mistake? Edit the file on GitLab.

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

Page generated Sun, 08 Nov 2026 00:16:37 +0000.