CVE-2026-30827
express-rate-limit: IPv4-mapped IPv6 addresses bypass per-client rate limiting (all IPv4 clients share one bucket on dual-stack servers)
Also known as GHSA-46wh-pxpv-q5gq
Mitigation
- Upgrade express-rate-limit to one of 8.2.2, 8.1.1, 8.0.2 (or later in the same release line).
Who should check
- Projects that depend on npm package express-rate-limit (>= 8.2.0, < 8.2.2)
- Anyone running express-rate-limit >= 8.0.0, < 8.0.2; >= 8.1.0, < 8.1.1; >= 8.2.0, < 8.2.2
Vulnerability facts
- Affected
- express-rate-limit >= 8.2.0, < 8.2.2
- Fixed in
- 8.2.2, 8.1.1, 8.0.2
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- CVSS
- 7.5 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Privileges required: None
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: None
- Integrity impact: None
- Availability impact: High
- EPSS
- 0.60% chance of exploitation in 30 days (percentile 43, 2026-11-26)
- CWE
- CWE-770
- Modified
Description
express-rate-limit is a basic rate-limiting middleware for Express. In versions starting from 8.0.0 and prior to versions 8.0.2, 8.1.1, 8.2.2, and 8.3.0, 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. This issue has been patched in versions 8.0.2, 8.1.1, 8.2.2, and 8.3.0.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| npm express-rate-limit | >= 8.2.0, < 8.2.2 | 8.2.2, 8.1.1, 8.0.2 | osv |
| express-rate-limit | >= 8.0.0, < 8.0.2; >= 8.1.0, < 8.1.1; >= 8.2.0, < 8.2.2 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2026-30827. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2026-30827.md Affected: express-rate-limit >= 8.2.0, < 8.2.2 Fixed in: 8.2.2, 8.1.1, 8.0.2 Steps: 1. Search this machine and project for express-rate-limit (npm), express-rate-limit: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
FAQ
Is CVE-2026-30827 being exploited?
There is no confirmed exploitation: CVE-2026-30827 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.60% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2026-30827?
High: CVSS 7.5 (v3.1, scored by CNA). Remote, no login needed.
Which versions are affected by CVE-2026-30827?
express-rate-limit >= 8.2.0, < 8.2.2.
Is there a fix for CVE-2026-30827?
Yes. Fixed in 8.2.2, 8.1.1, 8.0.2. Upgrade express-rate-limit to one of 8.2.2, 8.1.1, 8.0.2 (or later in the same release line).
How do I check if I'm affected by CVE-2026-30827?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.