---
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: 9router
product: 9router
affected:
  - 9router <= 0.5.4
patched:
  - 9router 0.5.8
published: '2026-09-22'
updated: '2026-09-22'
sourceUpdated: '2026-09-22T16:17:48.497'
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/advisories/GHSA-5mj8-gf6m-fhw8'
tags:
  - nvd
  - ghsa
  - npm
  - cve.org
  - exploit-available
aliases:
  - GHSA-5mj8-gf6m-fhw8
ecosystem: npm
ingestedAt: '2026-09-22T16:06:00.468Z'
epss: 0.00968
epssPercentile: 0.6024
exploits:
  nuclei:
    - CVE-2026-56681
  checkedAt: '2026-09-26T09:05:50.887Z'
exploitAvailable: true
---

## 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
