[Snyk] Security upgrade body-parser from 1.18.2 to 1.20.4#500
Conversation
The following vulnerabilities are fixed with an upgrade: - https://snyk.io/vuln/SNYK-JS-QS-15268416
There was a problem hiding this comment.
Pull request overview
Upgrades body-parser in packages/data-point-express to address a Snyk-reported vulnerability in transitive dependencies (via qs).
Changes:
- Bump
body-parserfrom1.18.2to1.20.4indevDependencies. - Bump
body-parserfrom1.18.2to1.20.4independencies.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| }, | ||
| "devDependencies": { | ||
| "body-parser": "1.18.2", | ||
| "body-parser": "1.20.4", |
There was a problem hiding this comment.
body-parser is declared in both devDependencies and dependencies (same version). Since it’s required at runtime (e.g., in lib/inspector-middleware.js), it should live only under dependencies to avoid future version drift/confusion; consider removing it from devDependencies.
| "body-parser": "1.20.4", |
| "dependencies": { | ||
| "body-parser": "1.18.2", | ||
| "body-parser": "1.20.4", | ||
| "data-point-service": "^4.4.0", |
There was a problem hiding this comment.
This PR updates package.json but doesn’t update the repo’s yarn.lock. With Yarn workspaces, leaving the lockfile unchanged can keep installs pinned to the old body-parser resolution (or cause the lockfile to be regenerated locally). Please run Yarn install and commit the resulting yarn.lock changes.
Snyk has created this PR to fix 1 vulnerabilities in the npm dependencies of this project.
Snyk changed the following file(s):
packages/data-point-express/package.jsonVulnerabilities that will be fixed with an upgrade:
SNYK-JS-QS-15268416
Important
Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open fix PRs.
For more information:
🧐 View latest project report
📜 Customise PR templates
🛠 Adjust project settings
📚 Read about Snyk's upgrade logic
Learn how to fix vulnerabilities with free interactive lessons:
🦉 Allocation of Resources Without Limits or Throttling