BlogPHP2Shell Exploitation: How Secure.com Can Protect YouRead more
← CVE Radar

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

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.

5.9 MEDIUMEPSS 0.41%Not in KEVNVD: Analyzed

Overview

Severity

ScoreSeverityVersionVector String
5.9MEDIUM3.1NVDCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
3.7LOW3.1openjs (CNA)CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L

Details

CVE ID
CVE-2026-12590
Status
Analyzed
Assigner (CNA)
openjs
Published
Jul 9, 2026
Last modified
2026-07-10 02:45 UTC
Weaknesses
  • CWE-770 · Allocation of Resources Without Limits or Throttling

Sources

Refreshed hourly from the sources above. Last fetched 2026-11-08 07:31 UTC.