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.

Severity (CVSS 3.1)3.7Low
Exploit odds (30 days)0.4%top 64.3% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

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

EcosystemPackageFixed inAdvisory
Debian:12node-body-parserno fix listedDEBIAN-CVE-2026-12590
Debian:13node-body-parserno fix listedDEBIAN-CVE-2026-12590
Debian:14node-body-parser2.3.0+~1.19.6-1DEBIAN-CVE-2026-12590
Ubuntu:22.04:LTSnode-body-parserno fix listedUBUNTU-CVE-2026-12590
Ubuntu:24.04:LTSnode-body-parserno fix listedUBUNTU-CVE-2026-12590
Ubuntu:25.10node-body-parserno fix listedUBUNTU-CVE-2026-12590
Ubuntu:26.04:LTSnode-body-parserno fix listedUBUNTU-CVE-2026-12590
Ubuntu:26.10node-body-parserno fix listedUBUNTU-CVE-2026-12590
npmbody-parser2.3.0GHSA-v422-hmwv-36x6
npmbody-parser1.20.6GHSA-v422-hmwv-36x6

Affected products (as reported)

VendorProductVersions
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

References