Update dependency body-parser to v2 [SECURITY]#68
Open
renovate[bot] wants to merge 1 commit into
Open
Conversation
e02097f to
d79e3c6
Compare
1e558be to
0f91a30
Compare
5f9539b to
635d645
Compare
c5d1687 to
f701fd0
Compare
dfc4355 to
939fddd
Compare
095b637 to
c5f727b
Compare
c5f727b to
04f6fd1
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^1.18.3→^2.2.1body-parser is vulnerable to denial of service when url encoding is used
CVE-2025-13466 / GHSA-wqch-xfxh-vrr4
More information
Details
Impact
body-parser 2.2.0 is vulnerable to denial of service due to inefficient handling of URL-encoded bodies with very large numbers of parameters. An attacker can send payloads containing thousands of parameters within the default 100KB request size limit, causing elevated CPU and memory usage. This can lead to service slowdown or partial outages under sustained malicious traffic.
Patches
This issue is addressed in version 2.2.1.
Severity
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:L/E:PReferences
This data is provided by the GitHub Advisory Database (CC-BY 4.0).
Release Notes
expressjs/body-parser (body-parser)
v2.2.1Compare Source
=========================
encodingExistsby using prototype-less objectsv2.2.0Compare Source
=========================
v2.1.0Compare Source
=========================
v2.0.2Compare Source
=========================
unpipepackage and use nativeunpipe()methodv2.0.1Compare Source
=========================
extendedtofalsev2.0.0Compare Source
=========================
Breaking Changes
req.bodyis no longer always initialized to{}undefinedunless a body is parsedbodyParser()combination middlewareas released, this is not the case, fixed in 2.0.1urlencodedparser now defaultsextendedtofalseurlencodedsimple parser now usesqsmodule instead ofquerystringmoduleFeatures
on-finishedto determine when body readDependencies
v1.20.5Compare Source
What's Changed
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)
New Contributors
Special thanks to triager @krzysdz for keeping this on our radar and effectively triaging the specific issue!
Full Changelog: expressjs/body-parser@1.20.4...1.20.5
v1.20.4Compare Source
===================
v1.20.3Compare Source
===================
depthoption to customize the depth level in the parserdepthlevel for parsing URL-encoded data is now32(previously wasInfinity)v1.20.2Compare Source
===================
v1.20.1Compare Source
===================
v1.20.0Compare Source
===================
strictevalusage withFunctionconstructorprocessto check for listenersv1.19.2Compare Source
===================
__proto__keysv1.19.1Compare Source
===================
v1.19.0Compare Source
===================
pb) supportthrowon invalid typeConfiguration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.