[Snyk] Upgrade express from 4.17.1 to 4.22.1#25
[Snyk] Upgrade express from 4.17.1 to 4.22.1#25vigneshlagishetti wants to merge 1 commit intomainfrom
Conversation
Snyk has created this PR to upgrade express from 4.17.1 to 4.22.1. See this package in npm: express See this project in Snyk: https://app.snyk.io/org/buntyanvi/project/ac5874ea-f26c-4c8b-95ce-52343320e453?utm_source=github&utm_medium=referral&page=upgrade-pr
There was a problem hiding this comment.
Pull request overview
This PR upgrades Express from version 4.17.1 to 4.22.1 to address multiple security vulnerabilities identified by Snyk, including issues related to prototype poisoning, resource consumption, regular expression denial of service, cross-site scripting, and open redirect vulnerabilities.
Key Changes
- Express upgraded from 4.17.1 to 4.22.1 (15 versions ahead)
- Transitive dependency updates including body-parser (1.19.0 → 1.20.4), qs (6.7.0 → 6.14.1), and numerous other security-related packages
- Lock file regenerated with updated dependency tree
Reviewed changes
Copilot reviewed 1 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| backend/package.json | Updates Express dependency version from ^4.17.1 to ^4.22.1 |
| backend/package-lock.json | Comprehensive lock file update with all transitive dependencies for Express 4.22.1 and security fixes |
Files not reviewed (1)
- backend/package-lock.json: Language not supported
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| @@ -14,7 +14,7 @@ | |||
| "bcryptjs": "^2.4.3", | |||
| "body-parser": "^1.19.0", | |||
There was a problem hiding this comment.
The body-parser dependency is listed at version ^1.19.0 in package.json, but Express 4.22.1 requires body-parser ~1.20.3 (which resolves to 1.20.4 in the lock file). Since body-parser is already included as a dependency of Express, consider removing it as a direct dependency unless your application specifically requires direct access to a particular version. This will prevent potential version conflicts and reduce dependency duplication.
| "body-parser": "^1.19.0", |
Snyk has created this PR to upgrade express from 4.17.1 to 4.22.1.
ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.
The recommended version is 15 versions ahead of your current version.
The recommended version was released a month ago.
Issues fixed by the recommended upgrade:
SNYK-JS-QS-3153490
SNYK-JS-BODYPARSER-7926860
SNYK-JS-PATHTOREGEXP-7925106
SNYK-JS-PATHTOREGEXP-8482416
SNYK-JS-COOKIE-8163060
SNYK-JS-EXPRESS-6474509
SNYK-JS-EXPRESS-7926867
SNYK-JS-SEND-7926862
SNYK-JS-SERVESTATIC-7926865
Release notes
Package name: express
-
4.22.1 - 2025-12-01
- Release: 4.22.1 by @ UlisesGascon in #6934
-
4.22.0 - 2025-12-01
- Security fix for CVE-2024-51999 (GHSA-pj86-cfqh-vqx6)
- Refactor: improve readability by @ sazk07 in #6190
- ci: add support for Node.js@23.0 by @ UlisesGascon in #6080
- Method functions with no path should error by @ wesleytodd in #5957
- ci: updated github actions ci workflow by @ Phillip9587 in #6323
- ci: reorder
- Backport: ci: add node.js 24 to test matrix by @ Phillip9587 in #6506
- chore(4.x): wider range for query test skip by @ jonchurch in #6513
- use tilde notation for certain dependencies by @ UlisesGascon in #6905
- deps: qs@6.14.0 by @ UlisesGascon in #6909
- deps: use tilde notation for
- Release: 4.22.0 by @ UlisesGascon in #6921
-
4.21.2 - 2024-12-05
- Add funding field (v4) by @ bjohansebas in #6065
- deps: path-to-regexp@0.1.11 by @ blakeembrey in #5956
- deps: bump path-to-regexp@0.1.12 by @ jonchurch in #6209
- Release: 4.21.2 by @ UlisesGascon in #6094
-
4.21.1 - 2024-10-08
- Backport a fix for CVE-2024-47764 to the 4.x branch by @ joshbuker in #6029
- Release: 4.21.1 by @ UlisesGascon in #6031
-
4.21.0 - 2024-09-11
- Deprecate
- finalhandler@1.3.1 by @ wesleytodd in #5954
- fix(deps): serve-static@1.16.2 by @ wesleytodd in #5951
- Upgraded dependency qs to 6.13.0 to match qs in body-parser by @ agadzinski93 in #5946
- @ agadzinski93 made their first contribution in #5946
-
4.20.0 - 2024-09-10
- IMPORTANT: The default
- Remove link renderization in html while using
- 4.19.2 Staging by @ wesleytodd in #5561
- remove duplicate location test for data uri by @ wesleytodd in #5562
- feat: document beta releases expectations by @ marco-ippolito in #5565
- Cut down on duplicated CI runs by @ jonchurch in #5564
- Add a Threat Model by @ UlisesGascon in #5526
- Assign captain of encodeurl by @ blakeembrey in #5579
- Nominate jonchurch as repo captain for
- docs: update Security.md by @ inigomarquinez in #5590
- docs: update triage nomination policy by @ UlisesGascon in #5600
- Add CodeQL (SAST) by @ UlisesGascon in #5433
- docs: add UlisesGascon as triage initiative captain by @ UlisesGascon in #5605
- deps: encodeurl@~2.0.0 by @ blakeembrey in #5569
- skip QUERY method test by @ jonchurch in #5628
- ignore ETAG query test on 21 and 22, reuse skip util by @ jonchurch in #5639
- add support Node.js@22 in the CI by @ mertcanaltin in #5627
- doc: add table of contents, tc/triager lists to readme by @ mertcanaltin in #5619
- List and sort all projects, add captains by @ blakeembrey in #5653
- docs: add @ UlisesGascon as captain for cookie-parser by @ UlisesGascon in #5666
- ✨ bring back query tests for node 21 by @ ctcpip in #5690
- [v4] Deprecate
- skip QUERY tests for Node 21 only, still not supported by @ jonchurch in #5695
- 📝 update people, add ctcpip to TC by @ ctcpip in #5683
- remove minor version pinning from ci by @ jonchurch in #5722
- Fix link variable use in attribution section of CODE OF CONDUCT by @ IamLizu in #5762
- Replace Appveyor windows testing with GHA by @ jonchurch in #5599
- Add OSSF Scorecard badge by @ UlisesGascon in #5436
- update scorecard link by @ bjohansebas in #5814
- Nominate @ IamLizu to the triage team by @ UlisesGascon in #5836
- deps: path-to-regexp@0.1.8 by @ blakeembrey in #5603
- docs: specify new instructions for
- 4.x: Upgrade
- path-to-regexp@0.1.10 by @ blakeembrey in #5902
- @ marco-ippolito made their first contribution in #5565
- @ inigomarquinez made their first contribution in #5590
- @ mertcanaltin made their first contribution in #5627
- @ ctcpip made their first contribution in #5690
- @ bjohansebas made their first contribution in #5814
-
4.19.2 - 2024-03-25
-
4.19.1 - 2024-03-20
-
4.19.0 - 2024-03-20
-
4.18.3 - 2024-02-29
-
4.18.2 - 2022-10-08
-
4.18.1 - 2022-04-29
-
4.18.0 - 2022-04-25
-
4.17.3 - 2022-02-17
-
4.17.2 - 2021-12-17
-
4.17.1 - 2019-05-26
from express GitHub release notesWhat's Changed
Important
The prior release (4.22.0) included an erroneous breaking change related to the extended query parser. There is no actual security vulnerability associated with this behavior (CVE-2024-51999 has been rejected). The change has been fully reverted in this release.
Full Changelog: 4.22.0...v4.22.1
Important: Security
What's Changed
npm isteps to fix ci for older node versions by @ Phillip9587 in #6336qsby @ Phillip9587 in #6919Full Changelog: 4.21.2...4.22.0
What's Changed
Full Changelog: 4.21.1...4.21.2
What's Changed
Full Changelog: 4.21.0...4.21.1
What's Changed
"back"magic string in redirects by @ blakeembrey in #5935New Contributors
Full Changelog: 4.20.0...4.21.0
What's Changed
Important
depthlevel for parsing URL-encoded data is now32(previously wasInfinity)res.redirectOther Changes
http-errors,expressjs.com,morgan,cors,body-parserby @ jonchurch in #5587res.clearCookieacceptingoptions.maxAgeandoptions.expiresby @ jonchurch in #5672questionanddiscussby @ IamLizu in #5835merge-descriptorsdependency by @ RobinTail in #5781New Contributors
Full Changelog: 4.19.1...4.20.0
Important
Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.
For more information: