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

- Severity: Low 3.7 (CVSS:3.1, scored by openjs) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.38%, higher than 33% of CVEs (2026-12-01)
- Published: 2026-07-09T10:21:10.447Z
- Modified: 2026-09-10T03:50:53.014Z
- Also known as: GHSA-v422-hmwv-36x6
- Weaknesses: CWE-770
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: openjs

## 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.

(As written by CVE List.)

## Affected

- body-parser body-parser: before 1.20.6; from 2.0.0 before 2.3.0 (not affected: 1.20.6; 2.3.0)
- body-parser (npm): before 1.20.6; from 2.0.0 before 2.3.0
- openjsf body-parser: before 1.20.6; from 2.0.0 before 2.3.0

## Every score

- openjs: CVSS:3.1 3.7 Low `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L`
- GitHub: CVSS:3.1 3.7 Low `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L`
- NVD: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/expressjs/body-parser/security/advisories/GHSA-v422-hmwv-36x6> (mitigation, patch, vendor-advisory, web)
- <https://cna.openjsf.org/security-advisories.html> (vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-12590> (advisory)
- <https://github.com/expressjs/body-parser/pull/698> (web)
- <https://github.com/expressjs/body-parser/pull/741> (web)
- <https://github.com/expressjs/body-parser/commit/2322e111cc321413ec2b7b76d01be533d3de9d7d> (web)
- <https://github.com/expressjs/body-parser/commit/3492672eee593d5c158f239b6e9115498a5dbeac> (web)
- <https://github.com/expressjs/body-parser> (package)
- <https://github.com/expressjs/body-parser/releases/tag/1.20.6> (web)
- <https://github.com/expressjs/body-parser/releases/tag/v2.3.0> (web)

## Sources

- CVE List: [CVE-2026-12590](https://www.cve.org/CVERecord?id=CVE-2026-12590), CVE Terms of Use, modified 2026-07-09
- GitHub Advisory Database: [GHSA-v422-hmwv-36x6](https://github.com/advisories/GHSA-v422-hmwv-36x6), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-12590](https://nvd.nist.gov/vuln/detail/CVE-2026-12590), Public domain, modified 2026-07-10

---

Page: https://cve.day/CVE-2026-12590 · Whole record: https://cve.day/CVE-2026-12590.json · Rebuilt by cve.day 2026-11-25T22:59:27.488Z
