Skip to content

🚨 [security] Update body-parser 1.20.1 → 2.3.0 (major) - #299

Open
depfu[bot] wants to merge 1 commit into
mainfrom
depfu/update/yarn/body-parser-2.3.0
Open

depfu[bot] wants to merge 1 commit into
mainfrom
depfu/update/yarn/body-parser-2.3.0

Conversation

@depfu

@depfu depfu Bot commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

🚨 Your current dependencies have known security vulnerabilities 🚨

This dependency update fixes known security vulnerabilities. Please see the details below and assess their impact carefully. We recommend to merge and deploy this as soon as possible!


Here is everything you need to know about this upgrade. Please take a good look at what changed and the test results before merging this pull request.

What changed?

✳️ body-parser (1.20.1 → 2.3.0) · Repo · Changelog

Security Advisories 🚨

🚨 body-parser is vulnerable to denial of service when url encoding is used

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.

🚨 body-parser vulnerable to denial of service when url encoding is enabled

Impact

body-parser <1.20.3 is vulnerable to denial of service when url encoding is enabled. A malicious actor using a specially crafted payload could flood the server with a large number of requests, resulting in denial of service.

Patches

this issue is patched in 1.20.3

References

Release Notes

2.3.0

What's Changed

  • build(deps): bump actions/download-artifact from 6.0.0 to 7.0.0 by @dependabot[bot] in #681
  • build(deps): bump actions/checkout from 5.0.0 to 6.0.1 by @dependabot[bot] in #682
  • build(deps): bump actions/setup-node from 6.0.0 to 6.1.0 by @dependabot[bot] in #683
  • build(deps): bump actions/upload-artifact from 5.0.0 to 6.0.0 by @dependabot[bot] in #685
  • build(deps): bump github/codeql-action from 4.31.2 to 4.31.9 by @dependabot[bot] in #684
  • perf(urlencoded): move empty-body guard to avoid extra function closure by @Phillip9587 in #647
  • Improve ESM compatibility by @Phillip9587 in #697
  • docs: add recommendations for configuring payload limits by @bjohansebas in #699
  • build(deps): bump actions/setup-node from 6.1.0 to 6.2.0 by @dependabot[bot] in #701
  • build(deps): bump github/codeql-action from 4.31.10 to 4.32.0 by @dependabot[bot] in #702
  • build(deps): bump actions/checkout from 6.0.1 to 6.0.2 by @dependabot[bot] in #700
  • chore: add explicit type commonjs to package.json by @Phillip9587 in #711
  • deps: update dependencies to latest versions by @Phillip9587 in #708
  • build(deps): bump actions/download-artifact from 7.0.0 to 8.0.0 by @dependabot[bot] in #712
  • build(deps): bump github/codeql-action from 4.32.0 to 4.32.4 by @dependabot[bot] in #713
  • build(deps): bump actions/upload-artifact from 6.0.0 to 7.0.0 by @dependabot[bot] in #714
  • fix: improve limit option validation by @Phillip9587 in #698
  • build(deps): bump github/codeql-action from 4.32.4 to 4.35.1 by @dependabot[bot] in #719
  • build(deps): bump actions/setup-node from 6.2.0 to 6.3.0 by @dependabot[bot] in #718
  • build(deps): bump actions/download-artifact from 8.0.0 to 8.0.1 by @dependabot[bot] in #717
  • perf: eliminate conditional check in json strict mode hot path by @Phillip9587 in #651
  • ci: add node.js 26 to text matrix by @Phillip9587 in #726
  • build(deps): bump actions/setup-node from 6.3.0 to 6.4.0 by @dependabot[bot] in #725
  • build(deps): bump actions/upload-artifact from 7.0.0 to 7.0.1 by @dependabot[bot] in #724
  • build(deps): bump github/codeql-action from 4.35.1 to 4.35.3 by @dependabot[bot] in #723
  • Upgrade "content-type" by @blakeembrey in #728
  • refactor: switch to const/let and enable eslint no-var rule by @Phillip9587 in #729
  • Update outdated reference to MDN docs by @krzysdz in #730
  • build(deps): bump github/codeql-action from 4.35.3 to 4.36.1 by @dependabot[bot] in #731
  • build(deps): bump actions/checkout from 6.0.2 to 6.0.3 by @dependabot[bot] in #732
  • chore: updated deps to latest by @Phillip9587 in #733
  • 2.3.0 by @UlisesGascon in #735

New Contributors

Full Changelog: v2.2.2...v2.3.0

2.2.2

What's Changed

New Contributors

Full Changelog: v2.2.1...v2.2.2

2.2.1

Important: Security

What's Changed

New Contributors

Full Changelog: v2.2.0...v2.2.1

2.2.0

What's Changed

New Contributors

Full Changelog: v2.1.0...v2.2.0

2.0.0

What's Changed

Important

  • add brotli support #406
  • Breaking Change: Node.js 18 is the minimum supported version

Details

New Contributors

Full Changelog: 1.20.2...2.0.0

1.20.5

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: 1.20.4...1.20.5

1.20.4

What's Changed

Full Changelog: 1.20.3...1.20.4

1.20.3

What's Changed

Important

  • deps: qs@6.13.0
  • add depth option to customize the depth level in the parser
  • IMPORTANT: The default depth level for parsing URL-encoded data is now 32 (previously was Infinity). Documentation

Other changes

New Contributors

Full Changelog: 1.20.2...1.20.3

1.20.2

  • Fix strict json error message on Node.js 19+
  • deps: content-type@~1.0.5
    • perf: skip value escaping when unnecessary
  • deps: raw-body@2.5.2

Does any of this look wrong? Please let us know.

Commits

See the full diff on Github. The new version differs by more commits than we can show here.


Depfu Status

Depfu will automatically keep this PR conflict-free, as long as you don't add any commits to this branch yourself. You can also trigger a rebase manually by commenting with @depfu rebase.

All Depfu comment commands
@​depfu rebase
Rebases against your default branch and redoes this update
@​depfu recreate
Recreates this PR, overwriting any edits that you've made to it
@​depfu merge
Merges this PR once your tests are passing and conflicts are resolved
@​depfu cancel merge
Cancels automatic merging of this PR
@​depfu close
Closes this PR and deletes the branch
@​depfu reopen
Restores the branch and reopens this PR (if it's closed)
@​depfu pause
Ignores all future updates for this dependency and closes this PR
@​depfu pause [minor|major]
Ignores all future minor/major updates for this dependency and closes this PR
@​depfu resume
Future versions of this dependency will create PRs again (leaves this PR as is)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants