CVE-2026-12590

body-parser vulnerable to denial of service when invalid limit value silently disables size enforcement

MEDIUM
5.9
CVSS Score
Published: July 9, 2026 at 10:21 AM UTC
Updated: July 10, 2026 at 03:01 AM UTC
2 products affected across 2 vendorsBody ParserBody Parser

Using body-parser by body-parser?

Get instant alerts when new vulnerabilities affect body-parser - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.9
Exploit prediction
EPSS 0.4%
SSVC
No known exploit

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

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 1.20.62.0.0 ≤ v < 2.3.0
Affected range stops below 1.20.6, so it looks safe — our inference, not a vendor statement
Affected range stops below 2.3.0, so it looks safe — our inference, not a vendor statement
v < 1.20.62.0.0 ≤ v < 2.3.02.0.0
Vendor states this is fixed in 1.20.6 (unaffected)
Vendor states this is fixed in 2.3.0 (unaffected)

Remediation

No guide yet

No remediation guidance has been written for this CVE yet. What the record does show:

References (2)

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

Attack Vector
NETWORK
Complexity
HIGH
Privileges
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusANALYZED
CWE
CWE-770

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card