NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
npm, #305 most downloaded on npm
Node.js body parsing middleware
Latest stable
2.4.0
Last release 1 months ago
22 Oct 2026
Ships unpredictably
gaps range from 3 weeks to 1.5 years
Nearly every release is documented
notes for 60 of the last 60 stable releases
Nothing withdrawn
no release was ever pulled
13 years old
87 releases · first in 2014
Drag across the ruler to compare, or tap a release to open it.
Security fix for CVE-2026-111181 ( GHSA-27r3-jxmh-p828 )
Full Changelog: v2.3.0...v2.4.0
Your coding agent can read these notes before it upgrades. Set up the MCP server →
zstd content-encoding support (#586)
^22.15.0 or >=23.8.0; older versions keep returning 415 for zstd encoded bodiesSecurity fix for CVE-2026-12590 ( GHSA-v422-hmwv-36x6 )
Full Changelog: v2.2.2...v2.3.0
limit option validation (#698)
limit values (e.g. unparseable strings or NaN) now throw instead of being silently ignored, which previously disabled size limit enforcementnull and undefined fall back to the default 100kb limitdocs: update README links by @efekrskl in #673
Full Changelog: v2.2.1...v2.2.2
Security fix for CVE-2025-13466 ( GHSA-wqch-xfxh-vrr4 )
Full Changelog: v2.2.0...v2.2.1
encodingExists by using prototype-less objectstest: remove --bail from test script by @Phillip9587 in https://github.com/expressjs/body-parser/pull/583
--bail from test script by @Phillip9587 in https://github.com/expressjs/body-parser/pull/583lcovonly reporter for the test-ci script by @Phillip9587 in https://github.com/expressjs/body-parser/pull/584Full Changelog: https://github.com/expressjs/body-parser/compare/v2.1.0...v2.2.0
fix: update package.json engines field to reflect minimum supported node version by @Phillip9587 in https://github.com/expressjs/body-parser/pull/541
methods by @Phillip9587 in https://github.com/expressjs/body-parser/pull/548safe-buffer by @Phillip9587 in https://github.com/expressjs/body-parser/pull/547type-is to v2.0.0 by @Phillip9587 in https://github.com/expressjs/body-parser/pull/571destroy by @Phillip9587 in https://github.com/expressjs/body-parser/pull/570debug to ^4.4.0 by @Phillip9587 in https://github.com/expressjs/body-parser/pull/579Full Changelog: https://github.com/expressjs/body-parser/compare/2.0.1...v2.1.0
fix: update package.json engines field to reflect minimum supported node version by @Phillip9587 in https://github.com/expressjs/body-parser/pull/541
methods by @Phillip9587 in https://github.com/expressjs/body-parser/pull/548Full Changelog: https://github.com/expressjs/body-parser/compare/2.0.1...2.0.2
Fix defaulting to extended url parsing by @blakeembrey in https://github.com/expressjs/body-parser/pull/536
Full Changelog: https://github.com/expressjs/body-parser/compare/2.0.0...2.0.1
Breaking Change: Node.js 18 is the minimum supported version
raw-body@3 by @wesleytodd in https://github.com/expressjs/body-parser/pull/529Full Changelog: https://github.com/expressjs/body-parser/compare/1.20.2...2.0.0
req.body is no longer always initialized to {}
undefined unless a body is parsedbodyParser() combination middlewareurlencoded parser now defaults extended to false~ as released, this is not the case, fixed in 2.0.1urlencoded simple parser now uses qs module instead of querystring moduleon-finished to determine when body readRemove deprecated bodyParser() combination middleware
This incorporates all changes after 1.19.1 up to 1.20.2.
bodyParser() combination middlewareDEBUG_HIDE_DATE environment variableDEBUG_FD environment variable supportreq.body is no longer always initialized to {}
req.body is no longer always initialized to {}
undefined unless a body is parsedurlencoded parser now defaults extended to falseon-finished to determine when body readreq.body is no longer always initialized to {}
undefined unless a body is parsedurlencoded parser now defaults extended to falseon-finished to determine when body readSecurity fix for CVE-2026-111181 ( GHSA-27r3-jxmh-p828 )
Full Changelog: 1.20.8...1.20.9
Same code base as 1.20.7 . This was created to test the new release process.
Same code base as 1.20.7. This was created to test the new release process.
Full Changelog: 1.20.7...1.20.8
Security fix for CVE-2026-12590 ( GHSA-v422-hmwv-36x6 )
Full Changelog: 1.20.5...1.20.6
limit option validation (#698)
limit values (e.g. unparseable strings or NaN) now throw instead of being silently ignored, which previously disabled size limit enforcementnull and undefined fall back to the default 100kb limitThe reason for this release is a fix to the extended urlencoded parser returning objects instead of arrays for large array inputs (> 100) on qs@6.14.2
The reason for this release is a fix to the extended urlencoded parser returning objects instead of arrays for large array inputs (> 100) on qs@6.14.2+. (#716)
Special thanks to triager @krzysdz for keeping this on our radar and effectively triaging the specific issue!
Full Changelog: 1.20.4...1.20.5
The reason for this release is a fix to the extended urlencoded parser returning objects instead of arrays for large array inputs (> 100) on qs@6.14.2+. (https://github.com/expressjs/body-parser/pull/716)
Special thanks to triager @krzysdz for keeping this on our radar and effectively triaging the specific issue!
Full Changelog: https://github.com/expressjs/body-parser/compare/1.20.4...1.20.5
Remove redundant depth check by @blakeembrey in #538
Full Changelog: 1.20.3...1.20.4
add depth option to customize the depth level in the parser
depth option to customize the depth level in the parserdepth level for parsing URL-encoded data is now 32 (previously was Infinity). DocumentationFull Changelog: https://github.com/expressjs/body-parser/compare/1.20.2...1.20.3
Fix strict json error message on Node.js 19+
perf: remove unnecessary object clone
Fix error message for json parse whitespace in strict
strict
eval usage with Function constructorprocess to check for listeners* deps: bytes@3.1.2 * deps: qs@6.9.7 * Fix handling of __proto__ keys * deps: raw-body@2.4.3 - deps: bytes@3.1.2
__proto__ keys* deps: bytes@3.1.1 * deps: http-errors@1.8.1 - deps: inherits@2.0.4 - deps: toidentifier@1.0.1 - deps: setprototypeof@1.2.0 * deps: qs@6.9.6 * deps:
Set constructor name when possible
pb) supportthrow on invalid typeFix deprecation warnings on Node.js 10+
perf: remove argument reassignment
perf: remove argument reassignment
Fix JSON strict violation error to match native parse error
body property on verify errorstype property on all generated errorshttp-errors to set status code on errorsBuffer loadinghttp-errors for standard emitted errorsthrow when missing charset* deps: debug@2.6.7 - Fix DEBUG_MAX_ARRAY_LENGTH - deps: ms@2.0.0 * deps: type-is@~1.6.15 - deps: mime-types@~2.1.15
DEBUG_MAX_ARRAY_LENGTHFix regression parsing keys starting with [
[Make message property enumerable for HttpErrors
message property enumerable for HttpErrorsFix deprecation messages in WebStorm and other editors
DEBUG_FD set to 1 or 2Deprecated DEBUG_FD environment variable
DEBUG_FD environment variableUse setprototypeof module to replace __proto__ setting
setprototypeof module to replace __proto__ settingDrop partial bytes on all parsed units
Add HttpError export, for err instanceof createError.HttpError
HttpError export, for err instanceof createError.HttpError- deps: bytes@2.2.0 - deps: iconv-lite@0.4.13 - deps: qs@5.2.0 - deps: raw-body@~2.1.5 - deps: bytes@2.2.0 - deps: iconv-lite@0.4.13 - deps: type-is@~
Fix issue where invalid charset results in 400 when verify used
verify usediconv-liteFix JSON strict parse error to match syntax errors
require analysis in urlencoded parser- deps: type-is@~1.6.6 - deps: mime-types@~2.1.4
Fix dropping parameters like hasOwnProperty
hasOwnPropertymakeErrorDowngraded from 3.1.0 because of user-visible incompatibilities
Add statusCode property on Errors, in addition to status
statusCode property on Errors, in addition to statustype default to application/json for JSON parsertype default to application/x-www-form-urlencoded for urlencoded parserrequire analysishttp-errors module to generate errorsCONNECT requestsUpgrade requestshasOwnPropertynull prototypeunpipe module for unpiping requestsFix allowing parameters like constructor
constructorSlight efficiency improvement when not debugging
Fix error when parameter hasOwnProperty is present
hasOwnProperty is presentFix high intensity foreground color for bold
accept a function for the type option
debug messagestype optioncontent-type to parse Content-Type headersObject.prototypehasBody Transfer-Encoding check*/*)make internal extended: true depth limit infinity
extended: true depth limit infinityFix rare aliases of single-byte encodings
- deps: on-finished@~2.2.0 - deps: type-is@~1.5.5 - deps: mime-types@~2.0.7
make internal extended: true array limit dynamic
extended: true array limit dynamicFix Windows-31J and X-SJIS encoding support
arrayLimit behaviorFix parsing of mixed objects and values
Fix handling of pipelined requests
include the charset in "unsupported charset" error message
fix content encoding to be case-insensitive
Fix issue with object keys starting with numbers truncated
* deps: depd@0.4.5
- deps: media-typer@0.3.0 - deps: type-is@~1.5.1
make empty-body-handling consistent between chunked requests
json produces {}raw produces new Buffer(0)text produces ''urlencoded produces {}hasbody to be true for content-length: 0One column per quarter.