Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Snyk] Upgrade express from 4.17.1 to 4.21.2 #289

Open
wants to merge 1 commit into
base: gitremote
Choose a base branch
from

Conversation

officialmofabs
Copy link
Collaborator

@officialmofabs officialmofabs commented Jan 24, 2025

snyk-top-banner

Snyk has created this PR to upgrade express from 4.17.1 to 4.21.2.

ℹ️ 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 13 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 Prototype Poisoning
SNYK-JS-QS-3153490
696 Proof of Concept
high severity Asymmetric Resource Consumption (Amplification)
SNYK-JS-BODYPARSER-7926860
696 No Known Exploit
medium severity Regular Expression Denial of Service (ReDoS)
SNYK-JS-PATHTOREGEXP-7925106
696 Proof of Concept
medium severity Regular Expression Denial of Service (ReDoS)
SNYK-JS-PATHTOREGEXP-8482416
696 Proof of Concept
medium severity Open Redirect
SNYK-JS-EXPRESS-6474509
696 No Known Exploit
medium severity Cross-site Scripting
SNYK-JS-EXPRESS-7926867
696 No Known Exploit
low severity Cross-site Scripting
SNYK-JS-SEND-7926862
696 No Known Exploit
low severity Cross-site Scripting
SNYK-JS-SERVESTATIC-7926865
696 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:

Summary by Sourcery

Upgrade Express from 4.17.1 to 4.21.2.

Bug Fixes:

  • Fix prototype poisoning vulnerability (SNYK-JS-QS-3153490).
  • Fix asymmetric resource consumption vulnerability (SNYK-JS-BODYPARSER-7926860).
  • Fix regular expression denial of service vulnerabilities (SNYK-JS-PATHTOREGEXP-7925106, SNYK-JS-PATHTOREGEXP-8482416).
  • Fix open redirect vulnerability (SNYK-JS-EXPRESS-6474509).
  • Fix cross-site scripting vulnerabilities (SNYK-JS-EXPRESS-7926867, SNYK-JS-SEND-7926862, SNYK-JS-SERVESTATIC-7926865).

Copy link

sourcery-ai bot commented Jan 24, 2025

Reviewer's Guide by Sourcery

This pull request upgrades the express dependency from version 4.17.1 to 4.21.2. This is a security upgrade that addresses multiple vulnerabilities.

No diagrams generated as the changes look simple and do not need a visual representation.

File-Level Changes

Change Details Files
The express dependency was upgraded from version 4.17.1 to 4.21.2.
  • Updated the express dependency version in package.json.
  • Updated the express dependency version in package-lock.json.
react-express-mongodb/backend/package.json
react-express-mongodb/backend/package-lock.json

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!
  • Generate a plan of action for an issue: Comment @sourcery-ai plan on
    an issue to generate a plan of action for it.

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

Copy link

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

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

We have skipped reviewing this pull request. It seems to have been created by a bot ('[Snyk]' found in title). We assume it knows what it's doing!

Copy link

New, updated, and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/@ampproject/[email protected] None 0 65.2 kB jridgewell
npm/@apideck/[email protected] environment 0 77.3 kB eliasmeire
npm/@babel/[email protected] None 0 50.5 kB nicolo-ribaudo
npm/@babel/[email protected] environment, filesystem, unsafe 0 268 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 119 kB nicolo-ribaudo
npm/@babel/[email protected] Transitive: environment, filesystem +1 85.4 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 53.3 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 6.58 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 2.53 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 49.6 kB nicolo-ribaudo
npm/@babel/[email protected] Transitive: environment +2 1.23 MB nicolo-ribaudo
npm/@babel/[email protected] None 0 5 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 108 kB nicolo-ribaudo
npm/@babel/[email protected] Transitive: environment +5 60.3 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 1.71 MB nicolo-ribaudo
npm/@babel/[email protected] None 0 44.7 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 2.42 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 3.09 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 2.56 kB jlhwung
npm/@babel/[email protected] None 0 3.91 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 21.4 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 6.85 kB nicolo-ribaudo
npm/[email protected] None 0 2.66 kB kemitchell
npm/[email protected] None 0 11.8 kB kemitchell
npm/[email protected] None 0 9.74 kB kemitchell
npm/[email protected] None 0 136 kB daviddias
npm/[email protected] network 0 57.7 kB indutny
npm/[email protected] None 0 34.8 kB alexei
npm/[email protected] None 0 46.9 kB nlf
npm/[email protected] None 0 8.41 kB stephank
npm/[email protected] None 0 33.2 kB eriwen
npm/[email protected] None 0 12.1 kB dougwilson
npm/[email protected] None 0 14.4 kB matteo.collina
npm/[email protected] 🔁 npm/[email protected] None 0 4.03 kB sindresorhus
npm/[email protected] None 0 2.64 kB sindresorhus
npm/[email protected] None 0 3.05 kB sindresorhus
npm/[email protected] None 0 3.04 kB sindresorhus
npm/[email protected] None 0 48.7 kB ludovicofischer
npm/[email protected] 🔁 npm/[email protected] None 0 7.04 kB sindresorhus
npm/[email protected] None 0 9.18 kB ljharb
npm/[email protected] None 0 5.93 kB kgryte
npm/[email protected] filesystem 0 975 kB trysound
npm/[email protected] None 0 335 kB gajus-table
npm/[email protected] None 0 89 kB evilebottnawi
npm/[email protected] environment, eval Transitive: filesystem +4 2.64 MB fabiosantoscode
npm/[email protected] None 0 11 kB substack
npm/[email protected] None 0 6.59 kB dead_horse
npm/[email protected] None 0 7.92 kB dead_horse
npm/[email protected] filesystem, shell, unsafe 0 44.2 kB evilebottnawi
npm/[email protected] None 0 7.76 kB mafintosh
npm/[email protected] None 0 3.5 kB sindresorhus
npm/[email protected] 🔁 npm/[email protected] None 0 4.68 kB dougwilson
npm/[email protected] filesystem 0 7.52 kB lukeed
npm/[email protected] 🔁 npm/[email protected] None 0 268 kB sebmaster
npm/[email protected] None 0 50 kB typescript-bot
npm/[email protected] None 0 29.6 kB sindresorhus
npm/[email protected] None 0 5.01 kB google-wombot
npm/[email protected] None 0 5.05 kB google-wombot
npm/[email protected] None 0 25.6 kB google-wombot
npm/[email protected] None 0 5.98 kB google-wombot
npm/[email protected] None 0 4.64 kB ryanzim
npm/[email protected] None 0 470 kB garycourt
npm/[email protected] None 0 24.2 kB ariaminaei
npm/[email protected] None 0 116 kB ctavan
npm/[email protected] environment, filesystem, unsafe 0 16.8 kB zertosh
npm/[email protected] None 0 16.6 kB kemitchell
npm/[email protected] unsafe +1 1.05 MB ota-meshi
npm/[email protected] None 0 11.1 kB soda
npm/[email protected] environment, filesystem 0 76.1 kB yyx990803
npm/[email protected] environment, eval 0 416 kB posva
npm/[email protected] None 0 502 kB yyx990803
npm/[email protected] environment 0 2.97 MB posva
npm/[email protected] environment, filesystem 0 56.9 kB sokra
npm/[email protected] None 0 14.2 kB timoxley
npm/[email protected] 🔁 npm/[email protected] None 0 12.4 kB sebmaster
npm/[email protected] environment, filesystem, network Transitive: shell +1 1.4 MB valscion
npm/[email protected] None 0 114 kB edmorley
npm/[email protected] filesystem 0 78.7 kB evilebottnawi
npm/[email protected] environment, network +1 729 kB evilebottnawi
npm/[email protected] None 0 57.2 kB bebraw
npm/[email protected] None 0 91.3 kB sokra
npm/[email protected] environment 0 79.3 kB vicvlas
npm/[email protected] environment, filesystem, network, unsafe 0 4.38 MB sokra
npm/[email protected] None 0 55 kB jcoglan
npm/[email protected] network 0 54.8 kB jakechampion
npm/[email protected] 🔁 npm/[email protected] None 0 49.9 kB domenic
npm/[email protected] environment 0 9.42 kB isaacs
npm/[email protected] None 0 21.7 kB damonoehlman
npm/[email protected] None 0 10.6 kB jonschlinkert
npm/[email protected] None 0 10.6 kB sindresorhus
npm/[email protected] network 0 122 kB lpinca
npm/[email protected] filesystem 0 23.4 kB oss-bot
npm/[email protected] None 0 14.8 kB isaacs
npm/[email protected] environment 0 448 kB eemeli
npm/[email protected] environment, filesystem 0 124 kB oss-bot
npm/[email protected] environment, filesystem 0 286 kB oss-bot
npm/[email protected] environment, filesystem Transitive: shell +4 67.3 kB yyx990803

🚮 Removed packages: npm/@sindresorhus/[email protected], npm/@szmarczak/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected]

View full report↗︎

Copy link

🚨 Potential security issues detected. Learn more about Socket for GitHub ↗︎

To accept the risk, merge this PR and you will not be notified again.

Alert Package NoteSourceCI
Critical CVE npm/[email protected] ⚠︎

View full report↗︎

Next steps

What is a critical CVE?

Contains a Critical Common Vulnerability and Exposure (CVE).

Remove or replace dependencies that include known critical CVEs. Consumers can use dependency overrides or npm audit fix --force to remove vulnerable dependencies.

Take a deeper look at the dependency

Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support [AT] socket [DOT] dev.

Remove the package

If you happen to install a dependency that Socket reports as Known Malware you should immediately remove it and select a different dependency. For other alert types, you may may wish to investigate alternative packages or consider if there are other ways to mitigate the specific risk posed by the dependency.

Mark a package as acceptable risk

To ignore an alert, reply with a comment starting with @SocketSecurity ignore followed by a space separated list of ecosystem/package-name@version specifiers. e.g. @SocketSecurity ignore npm/[email protected] or ignore all packages with @SocketSecurity ignore-all

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.

2 participants