---
id: CVE-2026-56681
title: 9Router is an AI router & token saver
summary: >-
  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 i…
severity: high
cvss: 7.3
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L'
cwe:
  - CWE-807
vendor: decolua
product: 9router
affected:
  - 9router < 0.5.6
patched:
  - 9router 0.5.8
published: '2026-09-22'
updated: '2026-09-28'
sourceUpdated: '2026-09-28T20:17:10.540'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-56681'
references:
  - url: >-
      https://github.com/decolua/9router/commit/efd20be8d81ef2e256a7037f3aa78e6b567b5fd3
    label: security-advisories@github.com
  - url: 'https://github.com/decolua/9router/releases/tag/v0.5.6'
    label: security-advisories@github.com
  - url: 'https://github.com/decolua/9router/security/advisories/GHSA-5mj8-gf6m-fhw8'
    label: security-advisories@github.com
  - url: 'https://github.com/decolua/9router/security/advisories/GHSA-5mj8-gf6m-fhw8'
    label: 134c704f-9b21-4f2e-91b3-4a467353bcc0
  - url: 'https://github.com/advisories/GHSA-5mj8-gf6m-fhw8'
tags:
  - nvd
  - cve.org
  - exploit-available
  - ghsa
  - npm
exploitAvailable: true
ssvc:
  exploitation: poc
  automatable: 'yes'
  technicalImpact: partial
  timestamp: '2026-09-28T19:31:39.694433Z'
exploits:
  nuclei:
    - CVE-2026-56681
  checkedAt: '2026-10-27T19:04:38.701Z'
aliases:
  - GHSA-5mj8-gf6m-fhw8
ecosystem: npm
ingestedAt: '2026-09-22T16:06:00.468Z'
epss: 0.01114
epssPercentile: 0.65843
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.

## Package advisory (CVE-2026-56681)

Affected packages:

- `9router <= 0.5.4`

Patched in:

- `9router 0.5.8`

Source: https://github.com/advisories/GHSA-5mj8-gf6m-fhw8
