Vulnerability · Published Jul 9, 2026 · Assigned by openjs
CVE-2026-12590body-parser vulnerable to denial of service when invalid limit value silently disables size enforcement
Low 3.7
In plain English
A low-severity resource allocation without limits in body-parser from body-parser. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 36% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
Impact: In body-parser versions prior to 1.20.6 (1.x line) and 2.3.0 (2.x line), when the parser is configured with an invalid limit option value such as an unparseable string or NaN, bytes.parse returns null and the request body size check is silently skipped. Applications that rely on limit as their primary safeguard against oversized request bodies will accept arbitrarily large payloads, leading to excessive memory and CPU usage and denial of service. Patches: This issue is fixed in body-parser 1.20.6 and 2.3.0. After the fix, invalid limit values throw a clear error at parser construction time instead of silently disabling enforcement, while null and undefined continue to fall back to the default limit of 100kb. Workarounds: Validate the limit value before passing it to body-parser. For example, parse the value at startup and reject any configuration where the result is null or a non-finite number.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | node-body-parser | no fix listed | DEBIAN-CVE-2026-12590 |
| Debian:13 | node-body-parser | no fix listed | DEBIAN-CVE-2026-12590 |
| Debian:14 | node-body-parser | 2.3.0+~1.19.6-1 | DEBIAN-CVE-2026-12590 |
| Ubuntu:22.04:LTS | node-body-parser | no fix listed | UBUNTU-CVE-2026-12590 |
| Ubuntu:24.04:LTS | node-body-parser | no fix listed | UBUNTU-CVE-2026-12590 |
| Ubuntu:25.10 | node-body-parser | no fix listed | UBUNTU-CVE-2026-12590 |
| Ubuntu:26.04:LTS | node-body-parser | no fix listed | UBUNTU-CVE-2026-12590 |
| Ubuntu:26.10 | node-body-parser | no fix listed | UBUNTU-CVE-2026-12590 |
| npm | body-parser | 2.3.0 | GHSA-v422-hmwv-36x6 |
| npm | body-parser | 1.20.6 | GHSA-v422-hmwv-36x6 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| body-parser | body-parser | 0 – before 1.20.62.0.0 – before 2.3.0 |
Weakness: CWE-770 · Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L