CVE-2026-12590

NameCVE-2026-12590
DescriptionImpact: 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.
SourceCVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
Debian Bugs1143074

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
node-body-parser (PTS)bullseye1.19.0-2vulnerable
bookworm1.20.1+~1.19.2-1vulnerable
trixie1.20.3+~1.19.5-3vulnerable
forky, sid2.2.2+~1.19.6-1vulnerable

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
node-body-parsersource(unstable)(unfixed)1143074

Notes

https://github.com/expressjs/body-parser/security/advisories/GHSA-v422-hmwv-36x6
https://github.com/expressjs/body-parser/pull/698
Fixed by: https://github.com/expressjs/body-parser/commit/2322e111cc321413ec2b7b76d01be533d3de9d7d (v2.3.0)

Search for package or bug name: Reporting problems