CVE-2026-30827
highPriorität · verfolgen · 0EPSS 0.005 · 41. PerzentilDEEUUSEPSS · bewertet 2026-10-27
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.
cvss
Technischer Schweregrad, 0–10. Eine Zeile je Quelle.
Basiswert 0–10 · höher = schwerwiegender · Vektor überfahren zum Auflösen⚠ Quellen uneinig · medium–high · 6.9–7.5
SSVC
Eine Handlungsentscheidung — aus Ausnutzung und Auswirkung.
schwächen
Die CWE-Schwächeklassen, zu denen dies gehört.
betroffene Produkte (33)
Betroffene Produkte und Versionsbereiche.
- Red Hat Ansible Automation Platform 2.5alle Versionencert_bundDEcpe:/a:redhat:ansible_automation_platform:2.5
- Red Hat Ansible Automation Platform 2.6alle Versionencert_bundDEcpe:/a:redhat:ansible_automation_platform:2.6
- Red Hat Enterprise Linux 10.0 Extended Update Supportalle Versionencert_bundDEcpe:/o:redhat:enterprise_linux:10.0_extended_update_support
- Red Hat OpenShift Migration Toolkit for Containersalle Versionencert_bundDEcpe:/a:redhat:openshift:migration_toolkit_for_containers
- Red Hat OpenShift Network Observability 1.11.2alle Versionencert_bundDEcpe:/a:redhat:openshift:network_observability_1.11.2
Advisories (3)
Hersteller- und Ökosystem-Meldungen dazu.
- WID-SEC-W-2026-0935Red Hat Ansible Automation Platform: Mehrere SchwachstellenDeutsch2026-03-31csaf · cert_bundDE
Ein entfernter, anonymer Angreifer kann mehrere Schwachstellen in Red Hat Ansible Automation Platform ausnutzen, um einen Denial of Service Angriff durchzuführen, beliebigen Code auszuführen, Sicherheitsmaßnahmen zu umgehen, Daten zu manipulieren, vertrauliche Informationen offenzulegen oder Cross-Site-Scripting-Angriffe durchzuführen.
- WID-SEC-W-2026-1220IBM App Connect Enterprise: Mehrere SchwachstellenDeutsch2026-04-21csaf · cert_bundDE
Ein entfernter, anonymer Angreifer kann mehrere Schwachstellen in IBM App Connect Enterprise ausnutzen, um Dateien zu manipulieren, und um einen Denial of Service Angriff durchzuführen.
- GHSA-46wh-pxpv-q5gqexpress-rate-limit: IPv4-mapped IPv6 addresses bypass per-client rate limiting on servers with dual-stack network2026-03-06ghsa · osvUS
## Summary 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. ## Details ### Root Cause In `source/ip-key-generator.ts`: ```typescript export function ipKeyGenerator(ip: string, ipv6Subnet: number | false = 56) { if (ipv6Subnet && isIPv6(ip)) { return `${new Address6(`${ip}/${ipv6Subnet}`).startAddress().correctForm()}/${ipv6Subnet}` } return ip } ``` `net.isIPv6('::ffff:192.168.1.1')` returns `true`, so IPv4-mapped addresses enter the subnet masking path. With a `/56` prefix, the start address for any `::ffff:x.x.x.x` is `::`, producing the key `::/56`. ### Proof of Concept ```javascript const { isIPv6 } = require('net'); const { Address6 } = require('ip-address'); function ipKeyGenerator(ip, ipv6Subnet = 56) { if (ipv6Subnet && isIPv6(ip)) { return `${new Address6(`${ip}/${ipv6Subnet}`).startAddress().correctForm()}/${ipv6Subnet}`; } return ip; } console.log(ipKeyGenerator('::ffff:192.168.1.1', 56)); // ::/56 console.log(ipKeyGenerator('::ffff:10.0.0.1', 56)); // ::/56 console.log(ipKeyGenerator('::ffff:8.8.8.8', 56)); // ::/56 // ALL produce '::/56' — same bucket ``` ### End-to-End Validation On a dual-stack Express server (`app.listen(port, '::')`), tested with Express 5.2.1: - `request.ip` for IPv4 clients is `::ffff:127.0.0.1` - Rate limit key resolves to `::/56` - After `limit` requests from any IPv4 client, all other IPv4 clients receive 429 ### When This Occurs - Node.js dual-stack servers (default on Linux when listening on `::`) - Any environment where `request.ip` contains IPv4-mapped IPv6 addresses - Only affects the default `keyGenerator` (custom key generators are not affected) ## Impact - **Denial of Service**: A single client can block all IPv4 traffic by exhausting the shared rate limit - **Affects default configuration**: No special options needed to trigger this ## Affected Versions All versions of express-rate-limit between v8.0.0 and v8.2.1. ## Fix This issue was fixed in commit 14e53888cdfd1b9798faf5b634c4206409e27fc4. This fix has been included in release v8.3.0, and backported to all affected minor versions in the form of releases v8.2.2, v8.1.1, and v8.0.2.
auch bekannt als (3)
Weitere Namen und Kennungen dieser Entität.
quellen
Welche Quellen diesen Datensatz belegen und wann.
Referenzen (7)
Externe Belege — Patches, Meldungen, Analysen.
- https://github.com/express-rate-limit/express-rate-limit/commit/14e53888cdfd1b9798faf5b634c4206409e27fc4cnnvd
- https://github.com/express-rate-limit/express-rate-limit/releasesPatchcnnvd
- https://github.com/express-rate-limit/express-rate-limit/security/advisories/GHSA-46wh-pxpv-q5gqcnnvd
- https://github.com/express-rate-limit/express-rate-limit/commit/14e53888cdfd1b9798faf5b634c4206409e27fc4enisa_euvd
- https://github.com/express-rate-limit/express-rate-limit/security/advisories/GHSA-46wh-pxpv-q5gqenisa_euvd
- https://github.com/express-rate-limit/express-rate-limit/commit/14e53888cdfd1b9798faf5b634c4206409e27fc4Patchnvd
- https://github.com/express-rate-limit/express-rate-limit/security/advisories/GHSA-46wh-pxpv-q5gqExploitPatchVendor Advisorynvd
Angreifer nutzen Schwachstellen wie diese gegen im Internet exponierte Dienste aus. Sehen Sie mit einem kostenlosen Passiv-Scan, was exponiert ist.
Kostenloser Scan