All CVEs / Express-rate-limit Project
CVE-2026-30827Express-rate-limit Project Express-rate-limit
High 7.5 No auth needed
Follow: this CVE · Express-rate-limit Project · Express-rate-limit Project Express-rate-limit We alert you by email or Slack (account required).
- Priority
- 60
- CVSS 3.1
- 7.5
- EPSS
- —
- Auth required
- No
- Published
- Mar 7, 2026
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-770
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: yes · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
What happens
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.
What to do
- Apply the vendor's security update for Express-rate-limit.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| npm | express-rate-limit |
≥ 8.2.0 < 8.2.2 |
8.2.2 |
npm install express-rate-limit@8.2.2 |
| npm | express-rate-limit |
≥ 8.1.0 < 8.1.1 |
8.1.1 |
npm install express-rate-limit@8.1.1 |
| npm | express-rate-limit |
≥ 8.0.0 < 8.0.2 |
8.0.2 |
npm install express-rate-limit@8.0.2 |
Per OSV / GitHub Advisories (GHSA-46wh-pxpv-q5gq). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| express-rate-limit_project | express-rate-limit | ≥ 8.0.0 < 8.0.2 |
| express-rate-limit_project | express-rate-limit | ≥ 8.2.0 < 8.2.2 |
| express-rate-limit_project | express-rate-limit | 8.1.0 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch
- github.com Exploit Patch Vendor Advisory