Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. express-rate-limit
  4. ›
  5. CVE-2026-30827

CVE-2026-30827: express-rate-limit: IPv4-mapped IPv6 addresses bypass per-client rate limiting on servers with dual-stack network

March 6, 2026 (updated March 9, 2026)

The default keyGenerator in express-rate-limit applies IPv6 subnet masking (/56 by default) to all addresses that net.isIPv6() returns true for. This includes IPv4-mapped IPv6 addresses (::ffff:x.x.x.x), which Node.js returns as request.ip on dual-stack servers.

Because the first 80 bits of all IPv4-mapped addresses are zero, a /56 (or any /32 to /80) subnet mask produces the same network key (::/56) for every IPv4 client. This collapses all IPv4 traffic into a single rate-limit bucket: one client exhausting the limit causes HTTP 429 for all other IPv4 clients.

References

  • github.com/advisories/GHSA-46wh-pxpv-q5gq
  • github.com/express-rate-limit/express-rate-limit
  • github.com/express-rate-limit/express-rate-limit/commit/14e53888cdfd1b9798faf5b634c4206409e27fc4
  • github.com/express-rate-limit/express-rate-limit/security/advisories/GHSA-46wh-pxpv-q5gq
  • nvd.nist.gov/vuln/detail/CVE-2026-30827

Code Behaviors & Features

Detect and mitigate CVE-2026-30827 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 starting from 8.0.0 before 8.0.2, all versions starting from 8.1.0 before 8.1.1, version 8.1.0, all versions starting from 8.2.0 before 8.2.2

Fixed versions

  • 8.2.2
  • 8.1.1
  • 8.0.2

Solution

Upgrade to versions 8.0.2, 8.1.1, 8.2.2 or above.

Impact 7.5 HIGH

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

Learn more about CVSS

Weakness

  • CWE-770: Allocation of Resources Without Limits or Throttling

Source file

npm/express-rate-limit/CVE-2026-30827.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Sat, 09 May 2026 12:20:21 +0000.