p PatchFirst

CVE-2026-56681

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

This page contains facts from public vulnerability sources. Check the original advisory before updating.

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.

CVSS 7.3 · High · EPSS 1.1% · Public exploit · Fix available

Published
Updated

Stack: node

Affected products and versions

  • 9router

    Versions
    • < 0.5.6: Affected

    No fix published

  • 9router npm

    Affected ranges
    • SEMVER: < 0.5.8

    Update to 0.5.8

Original sources

Check your server →