GHSA-wqch-xfxh-vrr4
body-parser is vulnerable to denial of service when url encoding is used
Packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| npm | body-parser | >= 2.2.0, < 2.2.1 | 2.2.1 |
Details
As written in the advisory (Markdown source, shown as plain text).
### 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.
References
External links from the advisory. They lead to third-party sites.
- 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
- https://github.com/expressjs/body-parser/releases/tag/v2.2.1