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

CVE-2026-56682: 9Router has a Login Brute-Force Lockout Bypass via Spoofable X-9r-Real-Ip Header

September 22, 2026

9router enforces a progressive login lockout (5 failed attempts → temporary 30s+ lock) keyed on the client IP. The client IP used for this limiter is taken from the X-9r-Real-Ip request header, which is intended to be set only by the bundled custom-server.js layer from the unspoofable TCP socket address. In deployment modes where requests reach Next.js directly, a remote attacker controls this header and can assign a unique value to every request. Because each distinct header value maps to a fresh limiter bucket, the lockout never triggers, enabling unlimited password guessing against the dashboard login endpoint. This was reproduced against a live instance: a fixed header value was locked out (429) after 5 attempts, while rotating the header produced unlimited 401 responses with no lockout.

References

  • github.com/advisories/GHSA-32gc-64m7-hj7v
  • github.com/decolua/9router/commit/efd20be8d81ef2e256a7037f3aa78e6b567b5fd3
  • github.com/decolua/9router/releases/tag/v0.5.6
  • github.com/decolua/9router/security/advisories/GHSA-32gc-64m7-hj7v
  • nvd.nist.gov/vuln/detail/CVE-2026-56682

Code Behaviors & Features

Detect and mitigate CVE-2026-56682 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 5.3 MEDIUM

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

Learn more about CVSS

Weakness

  • CWE-307: Improper Restriction of Excessive Authentication Attempts
  • CWE-807: Reliance on Untrusted Inputs in a Security Decision

Source file

npm/9router/CVE-2026-56682.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:52 +0000.