Packages / body-parser / Security
ModerateVulnerabilityGHSA-wqch-xfxh-vrr4CVE-2025-13466Published 25 Nov 2025
body-parser is vulnerable to denial of service when url encoding is used
Your version
Affected releases · body-parser
- 2.x2.2.0Fixed in 2.2.1
On 2.x, the newest line:
npm install body-parser@2.2.1Every release on a timeline
Not affected
1.0.0 – 2.1.0
80 releases
Affected
2.2.0
1 release
Fixed
2.2.1 – 2.4.0
4 releases, latest
What happens
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.