-
Notifications
You must be signed in to change notification settings - Fork 728
chore(deps): bump body-parser from 1.20.2 to 2.2.1 #3643
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Bumps [body-parser](https://github.com/expressjs/body-parser) from 1.20.2 to 2.2.1. - [Release notes](https://github.com/expressjs/body-parser/releases) - [Changelog](https://github.com/expressjs/body-parser/blob/master/HISTORY.md) - [Commits](expressjs/body-parser@1.20.2...v2.2.1) --- updated-dependencies: - dependency-name: body-parser dependency-version: 2.2.1 dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com>
|
Your PR title doesn't contain a Jira issue key. Consider adding it for better traceability. Example:
Projects:
Please add a Jira issue key to your PR title. |
2 similar comments
|
Your PR title doesn't contain a Jira issue key. Consider adding it for better traceability. Example:
Projects:
Please add a Jira issue key to your PR title. |
|
Your PR title doesn't contain a Jira issue key. Consider adding it for better traceability. Example:
Projects:
Please add a Jira issue key to your PR title. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR is being reviewed by Cursor Bugbot
Details
Your team is on the Bugbot Free tier. On this plan, Bugbot will review limited PRs each billing cycle for each member of your team.
To receive Bugbot reviews on all of your PRs, visit the Cursor dashboard to activate Pro and start your 14-day free trial.
| "axios": "^0.27.2", | ||
| "bcrypt": "5.0.0", | ||
| "body-parser": "^1.20.1", | ||
| "body-parser": "^2.2.1", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bug: Major version upgrade changes req.body undefined behavior
Upgrading body-parser from 1.x to 2.x introduces a breaking change where req.body is now undefined instead of {} when no body is parsed. The codebase has many handlers that directly access req.body.property (e.g., req.body.email, req.body.password, req.body.oldPassword) without null checks. If a request arrives without a parseable body (missing body, wrong Content-Type, or malformed content), these accesses will throw TypeError instead of returning undefined as before.
Bumps body-parser from 1.20.2 to 2.2.1.
Release notes
Sourced from body-parser's releases.
... (truncated)
Changelog
Sourced from body-parser's changelog.
... (truncated)
Commits
d96b63d2.2.1 (#659)b204886sec: security patch for CVE-2025-13466e20e351feat: removehistory.mdfrom being packaged on publish (#660)0d7ce71docs: switch badges from badgen.net to shields.io (#661)168afffci: also test on first supported node.js version (#646)e539a71build(deps): bump actions/setup-node from 5.0.0 to 6.0.0 (#654)9391612build(deps): bump actions/upload-artifact from 4.6.2 to 5.0.0 (#655)57baafbbuild(deps): bump github/codeql-action from 3.30.5 to 4.31.2 (#656)a6a088ebuild(deps): bump actions/download-artifact from 5.0.0 to 6.0.0 (#657)10a114dtest: add test for urlencoded invalid defaultCharset (#643)Maintainer changes
This version was pushed to npm by ulisesgascon, 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 mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@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.
Note
Upgrade
body-parserto^2.2.1and refresh lockfile with transitive dependency updates.backend/package.jsonupdatesbody-parserfrom^1.20.xto^2.2.1.pnpm-lock.yaml):body-parser@2.2.1and updates transitive deps:debug@4.4.3,http-errors@2.0.1,iconv-lite@0.7.0,raw-body@3.0.2,type-is@2.0.1,qs@6.14.0,media-typer@1.1.0,mime-types@3.0.2(mime-db@1.54.0).@aws-sdk/*packages (no version bumps of our direct deps).needlesource togit+https://git@github.com:clearbit/needle.git#84d28b5...from tarball URL.Written by Cursor Bugbot for commit a0c9769. This will update automatically on new commits. Configure here.