body-parser
2.4.0 · 22 Oct 2026MIT201.6M / weekRepositoryHomepagenpmAtom feed
85 stable releases, newest first, by release line. Notes are quoted as the maintainers published them.
- 2.x · latest line
2.4.0
22 Oct 2026- security
Security fix for CVE-2026-111181 (GHSA-27r3-jxmh-p828)
Avoid mutating read options when reading body
json: Avoid first-char regex for direct JSON bodies
Important: Security
- security
Security fix for CVE-2026-111181 (GHSA-27r3-jxmh-p828)
What's Changed
Avoid mutating read options when reading body
json: Avoid first-char regex for direct JSON bodies
Zstandard support
Inline content stream setup
2.3.0
15 Jun 2026- security
Security fix for CVE-2026-12590 (GHSA-v422-hmwv-36x6)
urlencoded: Move empty-body guard to avoid extra function closure
Improve ESM compatibility
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
2.2.2
7 Jan 2026Maintenance only: docs, tests, build or refactoring. Nothing changes in how you use it.
2.2.1
24 Nov 2025- security
Security fix for CVE-2025-13466 (GHSA-wqch-xfxh-vrr4)
Move read options outside parser middlewares
Remove history.md from being packaged on publish
Important: Security
- security
Security fix for CVE-2025-13466 (GHSA-wqch-xfxh-vrr4)
What's Changed
Move read options outside parser middlewares
Remove history.md from being packaged on publish
2.2.0
27 Mar 2025Remove skip of test
dep: Upgrade iconv-lite to ^0.6.3
Refactor parameterCount to optimize performance
What's Changed
Remove skip of test
dep: Upgrade iconv-lite to ^0.6.3
Refactor parameterCount to optimize performance
Release 2.2.0
2.1.0
10 Feb 2025- breaking
Update package.json engines field to reflect minimum supported node version
- removed
Remove unpipe package and use native unpipe method
Remove brotli support check
What's Changed
- breaking
Update package.json engines field to reflect minimum supported node version
Remove brotli support check
- removed
Remove unpipe package and use native unpipe method
Remove unused devDependency
methodsRemove devDependency
safe-bufferUse the node require cache instead of custom caching
Remove obsolete dependency
destroycleanup: Remove obsolete test env file
Refactor decompression stream creation to remove code duplication
Add caret for body-parser dependencies
Release v2.1.0
2.0.2
31 Oct 2024- breaking
Update package.json engines field to reflect minimum supported node version
- removed
Remove unpipe package and use native unpipe method
Remove brotli support check
What's Changed
- breaking
Update package.json engines field to reflect minimum supported node version
Remove brotli support check
- removed
Remove unpipe package and use native unpipe method
Remove unused devDependency
methods
2.0.1
10 Sep 2024Fix defaulting to extended url parsing
What's Changed
Fix defaulting to extended url parsing
2.0.0
10 Sep 2024- breaking
Node.js 18 is the minimum supported version
- removed
Drop support for less than LTS node versions in v2
Add brotli support #406
What's Changed
Important
Add brotli support #406
- breaking
Node.js 18 is the minimum supported version
Details
Pin to node@22.4.1
- removed
Drop support for less than LTS node versions in v2
Also use the qs module for the simple parser
urlencoded: Support iso-8859-1, utf8 sentinel, and numeric entities
Added support for brotli ('br') content-encoding
Add OSSF Scorecard badge
Linter
- 1.x
1.20.9
22 Oct 2026- security
Security fix for CVE-2026-111181 (GHSA-27r3-jxmh-p828)
Important: Security
- security
Security fix for CVE-2026-111181 (GHSA-27r3-jxmh-p828)
1.20.6
9 Jul 2026- security
Security fix for CVE-2026-12590 (GHSA-v422-hmwv-36x6)
Improve limit option validation
1.20.4
1 Dec 2025Remove redundant depth check
What's Changed
Remove redundant depth check
1.20.3
9 Sep 2024Add
depthoption to customize the depth level in the parserIMPORTANT: The default
depthlevel for parsing URL-encoded data is now32(previously wasInfinity). DocumentationPin to node@22.4.1
What's Changed
Important
Add
depthoption to customize the depth level in the parserIMPORTANT: The default
depthlevel for parsing URL-encoded data is now32(previously wasInfinity). Documentation
Other changes
Pin to node@22.4.1
Add OSSF Scorecard badge
Linter
1.20.2
22 Feb 2023Fix strict json error message on Node.js 19+
1.20.0
3 Apr 2022Fix error message for json parse whitespace in
strict
1.19.0 – 1.19.23 releases that only update dependenciesbytes 3.1.2qs 6.9.7raw-body 2.4.3and 6 moreShow each
- 1.19.216 Feb 2022bytes 3.1.2qs 6.9.7raw-body 2.4.3
- 1.19.110 Dec 2021bytes 3.1.1http-errors 1.8.1inherits 2.0.4and 5 more
- 1.19.026 Apr 2019bytes 3.1.0http-errors 1.7.2setprototypeof 1.1.1and 3 more
1.18.3
14 May 2018Fix stack trace for strict json parse error
1.18.1 – 1.18.22 releases that only update dependenciesdebug 2.6.9iconv-lite 0.4.19qs 6.5.1and 1 moreShow each
- 1.18.222 Sep 2017debug 2.6.9
- 1.18.112 Sep 2017iconv-lite 0.4.19qs 6.5.1raw-body 2.3.2
1.18.0
9 Sep 2017Fix JSON strict violation error to match native parse error
1.14.2 – 1.17.29 releases that only update dependenciesdebug 2.6.7ms 2.0.0qs 6.4.0and 4 moreShow each
- 1.17.218 May 2017debug 2.6.7ms 2.0.0
- 1.17.16 Mar 2017qs 6.4.0
- 1.17.01 Mar 2017setprototypeof 1.0.3qs 6.3.1
- 1.16.111 Feb 2017debug 2.6.1
- 1.16.018 Jan 2017debug 2.6.0ms 0.7.2inherits 2.0.3and 3 more
- 1.15.220 Jun 2016bytes 2.4.0qs 6.2.0
- 1.15.16 May 2016bytes 2.3.0
- 1.15.011 Feb 2016inherits 2.0.1qs 6.1.0
- 1.14.216 Dec 2015bytes 2.2.0iconv-lite 0.4.13qs 5.2.0
1.14.1
28 Sep 2015Fix issue where invalid charset results in 400 when
verifyused
Fix issue where invalid charset results in 400 when
verifyused
1.14.0
16 Sep 2015Fix JSON strict parse error to match syntax errors
Provide static
requireanalysis inurlencodedparser
Fix JSON strict parse error to match syntax errors
Provide static
requireanalysis inurlencodedparser
1.13.1 – 1.13.33 releases with no change for you2 dependency updates, 1 maintenanceiconv-lite 0.4.11qs 4.0.0Show each
1.13.0
15 Jun 2015- removed
Remove argument reassignment
Add
statusCodeproperty onErrors, in addition tostatusChange
typedefault toapplication/jsonfor JSON parser
Add
statusCodeproperty onErrors, in addition tostatusChange
typedefault toapplication/jsonfor JSON parserChange
typedefault toapplication/x-www-form-urlencodedfor urlencoded parserProvide static
requireanalysisUse the
http-errorsmodule to generate errorsEnable strict mode
- removed
Remove argument reassignment
Remove delete call
1.12.4
11 May 2015Only updates dependencies:qs 2.4.2bytes 2.0.1
1.12.3
16 Apr 2015Slight efficiency improvement when not debugging
Slight efficiency improvement when not debugging
1.12.0
14 Feb 2015Add
debugmessagesAccept a function for the
typeoptionUse
content-typeto parseContent-Typeheaders
Add
debugmessagesAccept a function for the
typeoptionUse
content-typeto parseContent-Typeheaders
1.11.0
31 Jan 2015Make internal
extended: truedepth limit infinity
Make internal
extended: truedepth limit infinity
1.10.1 – 1.10.22 releases with no change for you1 dependency updates, 1 maintenanceiconv-lite 0.4.6raw-body 1.3.2Show each
- 1.10.221 Jan 2015iconv-lite 0.4.6raw-body 1.3.2
- 1.10.12 Jan 2015docs, tests or tooling
1.10.0
3 Dec 2014Make internal
extended: truearray limit dynamic
1.9.3
22 Nov 2014Only updates dependencies:iconv-lite 0.4.5qs 2.3.3raw-body 1.3.1