Skip to content

[Snyk] Upgrade express from 4.17.1 to 4.22.1#126

Open
0xbaha wants to merge 1 commit intomasterfrom
snyk-upgrade-fe86b3c6d7d3687085b31fcc3dcecc34
Open

[Snyk] Upgrade express from 4.17.1 to 4.22.1#126
0xbaha wants to merge 1 commit intomasterfrom
snyk-upgrade-fe86b3c6d7d3687085b31fcc3dcecc34

Conversation

@0xbaha
Copy link
Copy Markdown

@0xbaha 0xbaha commented Feb 6, 2026

snyk-top-banner

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 2 months ago.

Issues fixed by the recommended upgrade:

Issue Score Exploit Maturity
high severity Asymmetric Resource Consumption (Amplification)
SNYK-JS-BODYPARSER-7926860
624 No Known Exploit
high severity Code Injection
SNYK-JS-LODASH-1040724
624 Proof of Concept
high severity Regular Expression Denial of Service (ReDoS)
SNYK-JS-NTHCHECK-1586032
624 Proof of Concept
medium severity Cross-site Scripting (XSS)
SNYK-JS-COOKIE-8163060
624 No Known Exploit
medium severity Open Redirect
SNYK-JS-EXPRESS-6474509
624 No Known Exploit
medium severity Cross-site Scripting
SNYK-JS-EXPRESS-7926867
624 No Known Exploit
medium severity Regular Expression Denial of Service (ReDoS)
SNYK-JS-LODASH-1018905
624 Proof of Concept
medium severity Prototype Pollution
SNYK-JS-LODASH-15053838
624 No Known Exploit
medium severity Regular Expression Denial of Service (ReDoS)
SNYK-JS-PATHTOREGEXP-7925106
624 Proof of Concept
medium severity Regular Expression Denial of Service (ReDoS)
SNYK-JS-PATHTOREGEXP-8482416
624 Proof of Concept
low severity Cross-site Scripting
SNYK-JS-SEND-7926862
624 No Known Exploit
low severity Cross-site Scripting
SNYK-JS-SERVESTATIC-7926865
624 No Known Exploit
Release notes
Package name: express from express GitHub release notes

Important

  • Check the changes in this PR to ensure they won't cause issues with your project.
  • This PR was automatically created by Snyk using the credentials of a real user.
  • Max score is 1000. Note that the real score may have changed since the PR was raised.

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:

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/bahaxid/project/48dd0f6d-5b56-4dea-b17e-690d5ea2f3dc?utm_source=github&utm_medium=referral&page=upgrade-pr
Copilot AI review requested due to automatic review settings February 6, 2026 07:05
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This is a Snyk automated security upgrade PR that updates Express from version 4.17.1 to 4.22.1 to address multiple reported security vulnerabilities in Express and its transitive dependencies. The upgrade includes fixes for high-severity vulnerabilities (Asymmetric Resource Consumption, Code Injection, and ReDoS) as well as medium and low severity issues related to XSS, Open Redirect, and Prototype Pollution.

Changes:

  • Updates express from 4.17.1 (or "latest") to the specific version 4.22.1
  • Updates package-lock.json with all transitive dependency upgrades including body-parser, cookie, qs, and multiple other security-related packages
  • Includes major version upgrades for several transitive dependencies (depd 2.0.0, http-errors 2.0.1, statuses 2.0.2)

Reviewed changes

Copilot reviewed 1 out of 2 changed files in this pull request and generated 2 comments.

File Description
package.json Changes express version from "latest" to specific version "4.22.1"
package-lock.json Updates complete dependency tree with new versions of express and all transitive dependencies, including security fixes

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread package.json
"express": "latest",
"express": "4.22.1",
"request": "2.88.2",
"cheerio": "latest"
Copy link

Copilot AI Feb 6, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The version specifier has been changed from "latest" to a specific version "4.22.1". While this is good for security and reproducibility, it's inconsistent with other dependencies in this file. The "cheerio" dependency still uses "latest" as its version specifier. Consider changing "cheerio" to use a specific version as well for consistency and to avoid unexpected breaking changes in the future.

Suggested change
"cheerio": "latest"
"cheerio": "1.0.0-rc.12"

Copilot uses AI. Check for mistakes.
Comment thread package.json
"author": "Herman Fassett",
"dependencies": {
"express": "latest",
"express": "4.22.1",
Copy link

Copilot AI Feb 6, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The PR description states the recommended version 4.22.1 was released on "2025-12-01" which is described as "2 months ago". However, version 4.22.1 appears to be the latest stable version which reverted a breaking change from 4.22.0. According to the release notes, CVE-2024-51999 referenced in version 4.22.0 has been rejected, meaning there was no actual security vulnerability. This version is appropriate to upgrade to, but the security justification for urgency may be overstated since the specific CVE was rejected.

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants