chore(deps): bump body-parser from 2.2.2 to 2.4.0
Bumps body-parser from 2.2.2 to 2.4.0.
Release notes
Sourced from body-parser's releases.
v2.4.0
Important: Security
- Security fix for CVE-2026-111181 (GHSA-27r3-jxmh-p828)
What's Changed
- build(deps): bump actions/checkout from 6.0.3 to 7.0.0 by
@dependabot[bot] in expressjs/body-parser#737- chore: group github actions updates by
@Phillip9587in expressjs/body-parser#743- build(deps): bump the github-actions group with 3 updates by
@dependabot[bot] in expressjs/body-parser#745- test: fix 'presist' typo in test descriptions by
@maxtaran2010in expressjs/body-parser#749- docs: include security fix in 2.3.0 changes by
@UlisesGasconin expressjs/body-parser#748- fix: avoid mutating read options when reading body by
@Phillip9587in expressjs/body-parser#742- refactor: move getCharset helper to only usage by
@Phillip9587in expressjs/body-parser#707- build(deps): bump the github-actions group with 7 updates by
@dependabot[bot] in expressjs/body-parser#753- refactor: switch to neostandard by
@Phillip9587in expressjs/body-parser#751- perf(json): avoid first-char regex for direct JSON bodies by
@Phillip9587in expressjs/body-parser#744- docs: fix entity verify error description by
@Rawal27in expressjs/body-parser#755- feat: zstandard support by
@Phillip9587in expressjs/body-parser#586- test: remove unused experimentalZstd option by
@Phillip9587in expressjs/body-parser#757- ci: run tests on windows and macos matrix by
@kilisamemarisaaain expressjs/body-parser#759- deps: qs@^6.16.0 by
@krzysdzin expressjs/body-parser#762- build(deps): bump the github-actions group with 3 updates by
@dependabot[bot] in expressjs/body-parser#763- ci: trigger npm publish on release published and set dist-tag by
@UlisesGasconin expressjs/body-parser#768- build(deps): bump the github-actions group with 3 updates by
@dependabot[bot] in expressjs/body-parser#771- fix(test): pin supertest to 7.3.0 to avoid 7.3.1 regression by
@saadkhantareenin expressjs/body-parser#773- perf: inline content stream setup by
@Phillip9587in expressjs/body-parser#750- docs: note that req.body may be undefined in v2 by
@Hashim1999164in expressjs/body-parser#752- docs: fix strict option description by
@Rawal27in expressjs/body-parser#756- docs: fix depth error description by
@johnnyhuirilefin expressjs/body-parser#776- chore: update dependencies by
@Phillip9587in expressjs/body-parser#778- Release: 2.4.0 by
@UlisesGasconin expressjs/body-parser#777New Contributors
@maxtaran2010made their first contribution in expressjs/body-parser#749@Rawal27made their first contribution in expressjs/body-parser#755@kilisamemarisaaamade their first contribution in expressjs/body-parser#759@saadkhantareenmade their first contribution in expressjs/body-parser#773@Hashim1999164made their first contribution in expressjs/body-parser#752@johnnyhuirilefmade their first contribution in expressjs/body-parser#776Full Changelog: https://github.com/expressjs/body-parser/compare/v2.3.0...v2.4.0
v2.3.0
Important: Security
- Security fix for CVE-2026-12590 (GHSA-v422-hmwv-36x6)
What's Changed
- build(deps): bump actions/download-artifact from 6.0.0 to 7.0.0 by
@dependabot[bot] in expressjs/body-parser#681
... (truncated)
Changelog
Sourced from body-parser's changelog.
2.4.0
- Security fix for GHSA-27r3-jxmh-p828 (CVE-2026-111181)
- feat: add
zstdcontent-encoding support (#586)
- Requires Node.js
^22.15.0or>=23.8.0; older versions keep returning415forzstdencoded bodies- fix: avoid mutating the parser options and the request object while reading the body (#742, #750)
- perf(json): avoid first-char regex for direct JSON bodies (#744)
- deps:
- content-type@^2.1.0
- iconv-lite^0.7.3
- qs@^6.16.1
2.3.0
- Security fix for GHSA-v422-hmwv-36x6
- fix: use static exports instead of lazy getters to improve ESM compatibility
- feat: add subpath exports for individual parsers
- fix: improve
limitoption validation (#698)
- Invalid
limitvalues (e.g. unparseable strings orNaN) now throw instead of being silently ignored, which previously disabled size limit enforcementnullandundefinedfall back to the default 100kb limit- deps:
- content-type@^2.0.0
- http-errors@^2.0.1
- iconv-lite^0.7.2
- qs@^6.15.2
- raw-body@^3.0.2
- type-is@^2.1.0
Commits
b4744d72.4.0 (#777)f7075eafix: prevent process crash from trailing bytes after a compressed body185ff1dchore: update dependencies (#778)73713f7docs: fix depth error description (#776)2dcc826docs: improve readability (#756)402dbdcdocs: note that req.body may be undefined in v2 (#752)9883a1eperf: inline content stream setup (#750)02101dafix(test): pin supertest to 7.3.0 to avoid 7.3.1 regression (#773)822a0fdbuild(deps): bump the github-actions group with 3 updates (#771)aa9889bci: trigger npm publish on release published and set dist-tag (#768)- Additional commits viewable in compare view
Maintainer changes
This version was pushed to npm by GitHub Actions, a new releaser for body-parser since your current version.
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
You can disable automated security fix PRs for this repo from the Security Alerts page.
Summary by cubic
Updates body-parser from 2.2.2 to 2.4.0 in the lockfile. This pulls in two security fixes (CVE-2026-111181 and CVE-2026-12590), adds zstd content-encoding support, and includes a fix that avoids mutating parser options while reading request bodies.
- zstd support requires Node
^22.15.0or>=23.8.0; older runtime versions keep returning415for zstd-encoded bodies. - Affects the HTTP server routes only; no billing or metering impact.
- Verified by the existing test suite passing with the updated dependency.