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

npm audit fail on last Express version (4.20.0) due to send(0.19.0) vulnerability #5947

Closed
poiuylkkk opened this issue Sep 11, 2024 · 4 comments
Assignees
Labels

Comments

@poiuylkkk
Copy link

poiuylkkk commented Sep 11, 2024

Bug Report: npm audit fails on latest Express version (4.20.0) due to send(0.19.0) vulnerability

Issue Description

Running npm audit on the latest version of Express (4.20.0) fails due to a moderate severity vulnerability in send (<0.19.0).

Here’s the relevant output from npm audit:

npm audit report send <0.19.0

Severity: moderate
send vulnerability to template injection can lead to XSS - http://github.com/advisories/GHSA-m6fv-jmcg-4jfg
No fix available

Steps to reproduce

npm install express --save

@poiuylkkk poiuylkkk added the bug label Sep 11, 2024
@porschesstein
Copy link

Belonging report in serve-static, where the upgrade to send 0.19.0 is already prepared: expressjs/serve-static#175

@NewEraCracker
Copy link

NewEraCracker commented Sep 11, 2024

My advice for now, if using express v4, until the maintainers actually fix this. See: Mismatched dependency versions

  "overrides": {
    "encodeurl": "~2.0.0",
    "qs": "^6.13.0",
    "send": "^0.19.0"
  },

Be aware it may not be possible for every occasion if other dependencies use a completely different version. My two cents.

@wesleytodd
Copy link
Member

Closing this in favor of this more complete list of things we need to align versions for: #5943

@wesleytodd
Copy link
Member

https://github.com/expressjs/express/releases/tag/4.21.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants