Packages

body-parser

2.4.0 · 22 Oct 2026MIT201.6M / weekRepositoryHomepagenpmAtom feed

Your version

2.3.0

15 Jun 2026Where it was published

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

1 advisory affects 2.3.0; 2.4.0 fixes them

Release note

Important: Security

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