Repository navigation
Bump body-parser and express - #4988
dependabot[bot] wants to merge 1 commit into
Conversation
Bumps [body-parser](https://github.com/expressjs/body-parser) and [express](https://github.com/expressjs/express). These dependencies needed to be updated together. Updates `body-parser` from 1.20.3 to 1.20.6 - [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.3...1.20.6) Updates `express` from 4.21.2 to 4.22.2 - [Release notes](https://github.com/expressjs/express/releases) - [Changelog](https://github.com/expressjs/express/blob/v4.22.2/History.md) - [Commits](expressjs/express@4.21.2...v4.22.2) --- updated-dependencies: - dependency-name: body-parser dependency-version: 1.20.6 dependency-type: indirect - dependency-name: express dependency-version: 4.22.2 dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com>
Up to standards ✅🟢 Issues
|
There was a problem hiding this comment.
Pull Request Overview
This PR intended to upgrade 'body-parser' and 'express' to address security vulnerability GHSA-v422-hmwv-36x6. However, the implementation is incomplete because 'package.json' has not been modified; updating only the lockfile (or providing an empty diff) does not fulfill the requirement to bump dependencies in the project manifest. Furthermore, the PR lacks automated tests to verify the specific logic changes and security mitigations introduced by the new versions, such as input validation and query string parsing limits.
About this PR
- The PR implementation is incomplete because the diff does not include any changes to 'package.json'. The dependencies are not actually upgraded in the manifest, which is required to resolve the targeted security vulnerability (GHSA-v422-hmwv-36x6).
- No unit or integration tests are provided to verify compatibility with the new dependency versions or to ensure that the security vulnerability is effectively mitigated in the project context.
Test suggestions
- Verify that 'body-parser' correctly throws an error when provided with an invalid 'limit' option (e.g., NaN or unparseable string).
- Confirm that 'body-parser' falls back to the default 100kb limit when the 'limit' option is null or undefined.
- Validate that 'express' correctly parses 'req.query' repeated keys into arrays for more than 20 items (up to the new 1000 item cap).
Prompt proposal for missing tests
Consider implementing these tests if applicable:
1. Verify that 'body-parser' correctly throws an error when provided with an invalid 'limit' option (e.g., NaN or unparseable string).
2. Confirm that 'body-parser' falls back to the default 100kb limit when the 'limit' option is null or undefined.
3. Validate that 'express' correctly parses 'req.query' repeated keys into arrays for more than 20 items (up to the new 1000 item cap).
TIP Improve review quality by adding custom instructions
TIP How was this review? Give us feedback
|
Superseded by #5056. |
Bumps body-parser and express. These dependencies needed to be updated together.
Updates
body-parserfrom 1.20.3 to 1.20.6Release notes
Sourced from body-parser's releases.
Changelog
Sourced from body-parser's changelog.
Commits
5cc4fb81.20.6 (#746)3492672fix: improve limit option validation (#741)0defdberelease(patch): 1.20.5cd0e7a0deps(qs): bump qs to 6.15.16f24d7efix: correct off-by-one error in parameterCount (#716)b849bd5deps: qs@~6.14.1 (#690)2c55e2frefactor(json): simplify strict mode error string construction (#692)7db202c1.20.4 (#672)d8f8adbci: add CodeQL (SAST) (#670)6d133c1chore: remove SECURITY.md (#669)Updates
expressfrom 4.21.2 to 4.22.2Release notes
Sourced from express's releases.
Changelog
Sourced from express's changelog.
Commits
df0abc94.22.2836d3664.xupdate qs to 6.15.1, body-parser 1.20.5 (#7224)8d09bfefix: restore array parsing for req.query repeated keys (#7181)d39e8addeps: body-parser@~1.20.4 (#7021)efe85d9deps: qs@^6.14.1 (#6972)f62378e📝 add note to history12fae144.22.15ddf311Revert "sec: security patch for CVE-2024-51999"49744ab4.22.0 (#6921)6e97452sec: security patch for CVE-2024-51999You can trigger a rebase of this PR 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.