body-parser
2.4.0 · 22 Oct 2026MIT201.6M / weekRepositoryHomepagenpmAtom feed
Your version
2.4.0 is the newest release of 2.x.
In short
1 security2 faster1 fixed3 changed25 internal
Security
Fixes 1 advisory that affected 2.2.2
- Lowbody-parser vulnerable to denial of service when invalid limit value silently disables size enforcementGHSA-v422-hmwv-36x6 · 20 Jul 2026Fixed in 2.3.0
1 advisory affects 2.3.0; 2.4.0 fixes them
- Highbody-parser vulnerable to Denial of Service via trailing bytes after a compressed request bodyGHSA-27r3-jxmh-p828 · 23 Oct 2026Fixed in 2.4.0
Release note
Important: Security
- security
Security fix for CVE-2026-12590 (GHSA-v422-hmwv-36x6)
What's Changed
urlencoded: Move empty-body guard to avoid extra function closure
Improve ESM compatibility
Improve limit option validation
Eliminate conditional check in json strict mode hot path
Upgrade "content-type"
Update outdated reference to MDN docs