body-parser
2.4.0 · 22 Oct 2026MIT201.6M / weekRepositoryHomepagenpmAtom feed
Upgrading body-parser From 1.3.1 to 1.4.0
1 release in betweenevery note read
- 2
- changes to make
- 0
- advisories fixed
- 3
- new
- 0
- fixes
Before you upgrade
Tick each one off as you go- deprecated1.4.0
- deprecated1.4.0
Security
3 advisories still affect 1.4.0
- body-parser vulnerable to Denial of Service via trailing bytes after a compressed request bodyhigh · GHSA-27r3-jxmh-p828
- body-parser vulnerable to denial of service when url encoding is enabledhigh · GHSA-qwcr-r2fm-qrc7
- body-parser vulnerable to denial of service when invalid limit value silently disables size enforcementlow · GHSA-v422-hmwv-36x6
Upgrading to 1.20.9 clears them.
Release by release
- deprecated
Deprecate
bodyParser()middleware; use.json()and.urlencoded()as needed - deprecated
Deprecate
urlencoded()without providedextendedoption - new
Add
textparser - new
Add
rawparser - new
Support gzip and deflate bodies
- deprecated
4 other lines we could not sort, mostly version bumps
- 1.4.0
Check accepted charset in content-type (accepts utf-8)
- 1.4.0
Check accepted encoding in content-encoding (accepts identity)
- 1.4.0
lazy-load urlencoded parsers
- 1.4.0
Parsers split into files for reduced mem usage
1 internal line (docs, tests, tooling) left out.