CVE-2025-13466: body-parser is vulnerable to denial of service when url encoding is used
Impact body-parser 2.2.0 is vulnerable to denial of service due to inefficient handling of URL-encoded bodies with very large numbers of parameters. An attacker can send payloads containing thousands of parameters within the default 100KB request size limit, causing elevated CPU and memory usage. This can lead to service slowdown or partial outages under sustained malicious traffic.
Published Nov 25, 2025
Affected packages
body-parser
- Ecosystem
- npm
- Affected
- >= 2.2.0, < 2.2.1
- Fixed in
- 2.2.1
- Check
npm ls body-parser
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Impact
body-parser 2.2.0 is vulnerable to denial of service due to inefficient handling of URL-encoded bodies with very large numbers of parameters. An attacker can send payloads containing thousands of parameters within the default 100KB request size limit, causing elevated CPU and memory usage. This can lead to service slowdown or partial outages under sustained malicious traffic.
Patches
This issue is addressed in version 2.2.1.
Credited to Phillip9587, bjohansebas, UlisesGascon, ctcpip, sheplu, jonchurch.
References
- https://github.com/expressjs/body-parser/security/advisories/GHSA-wqch-xfxh-vrr4
- https://nvd.nist.gov/vuln/detail/CVE-2025-13466
- https://github.com/expressjs/body-parser/commit/b204886a6744b0b6d297cd0e849d75de836f3b63
- https://github.com/expressjs/body-parser/releases/tag/v2.2.1
- https://github.com/advisories/GHSA-wqch-xfxh-vrr4
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More npm vulnerabilities
All npm entriesCVE-2026-111181
body-parser vulnerable to Denial of Service via trailing bytes after a compressed request body
high7.5Oct 23, 2026CVE-2026-12590
body-parser vulnerable to denial of service when invalid limit value silently disables size enforcement
low3.7Jul 20, 2026CVE-2024-45590
body-parser vulnerable to denial of service when url encoding is enabled
high7.5Sep 10, 2024
