[Snyk] Security upgrade express from 4.19.2 to 4.22.0#41
[Snyk] Security upgrade express from 4.19.2 to 4.22.0#41
Conversation
…ties The following vulnerabilities are fixed with an upgrade: - https://snyk.io/vuln/SNYK-JS-EXPRESS-14157151
There was a problem hiding this comment.
Pull request overview
This PR addresses a medium-severity Prototype Pollution vulnerability (SNYK-JS-EXPRESS-14157151) by upgrading the Express framework from version 4.19.2 to 4.22.0 in the backend dependencies.
- Upgrades Express to fix Prototype Pollution security vulnerability (score: 631/1000)
- Updates numerous transitive dependencies including body-parser, cookie, encodeurl, finalhandler, send, serve-static, and related packages
- Adds new utility packages (call-bind-apply-helpers, call-bound, dunder-proto, get-proto, math-intrinsics, es-object-atoms) and updates introspection utilities
Reviewed changes
Copilot reviewed 1 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| back/package.json | Updates express version specifier from ~4.19.2 to ~4.22.0 |
| back/package-lock.json | Locks express to 4.22.0 and updates all transitive dependencies, with version specifier changed from tilde to caret |
Files not reviewed (1)
- back/package-lock.json: Language not supported
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| "cookie-parser": "~1.4.4", | ||
| "debug": "~2.6.9", | ||
| "express": "~4.19.2", | ||
| "express": "^4.22.0", |
There was a problem hiding this comment.
Version specifier inconsistency: package.json uses ~4.22.0 (tilde) while package-lock.json uses ^4.22.0 (caret). These have different semantic meanings:
~4.22.0allows patch updates (4.22.x)^4.22.0allows minor and patch updates (4.x.x)
The version specifiers should match between files to ensure consistent dependency resolution. Recommend updating package-lock.json to use ~4.22.0 to match package.json, or vice versa for consistency.
| "express": "^4.22.0", | |
| "express": "~4.22.0", |
Snyk has created this PR to fix 1 vulnerabilities in the npm dependencies of this project.
Snyk changed the following file(s):
back/package.jsonback/package-lock.jsonVulnerabilities that will be fixed with an upgrade:
SNYK-JS-EXPRESS-14157151
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:
🦉 Prototype Pollution