Feed
5.0MEDIUM
CVE-2024-43796express vulnerable to XSS via response.redirect()
A medium-severity vulnerability reachable over the network, needing no privileges and user interaction. EPSS estimates a 0.6% chance of exploitation in the next 30 days. A fixed version is named.
- Exploited in the wild
- Not in KEV
- EPSS
- 0.6%
- percentile 45%
- Fix
- Named by a source
- CVE published 10 Sept 2024
Reference
None of the "Needs attention" rules apply right now.
EPSS 0.6% (+1) · Network attack vector (+10) · No privileges required (+5)
Immediate actions
- express (npm): upgrade to 4.20.0 / 5.0.0 or later on your release line.
- Commit / pull request: https://github.com/expressjs/express/commit/54271f69b511fea198471e6ff3400ab805d6b553
Who should check
express (npm) pkg:npm/express
- Affected< 4.20.0Fixed in4.20.0OSV (GHSA-qw6h-vgh9-j6wx)
- Affected>= 5.0.0-alpha.1, < 5.0.0Fixed in5.0.0OSV (GHSA-qw6h-vgh9-j6wx)
Confirmed facts
- CVSS
- 5 MEDIUM (version 3.1)
- Score from
- GitHub Advisory Database (GHSA-qw6h-vgh9-j6wx)
- Attack vector
- network
- Attack complexity
- high
- Privileges required
- none
- User interaction
- required
- Weakness
- CWE-79
Unknowns
- We show one CVSS score. Other sources may score this CVE differently.
Advisory text
Quoted from the source advisory (untrusted)### Impact In express <4.20.0, passing untrusted user input - even after sanitizing it - to `response.redirect()` may execute untrusted code ### Patches this issue is patched in express 4.20.0 ### Workarounds users are encouraged to upgrade to the patched version of express, but otherwise can workaround this issue by making sure any untrusted inputs are safe, ideally by validating them against an explicit allowlist ### Details successful exploitation of this vector requires the following: 1. The attacker MUST control the input to response.redirect() 1. express MUST NOT redirect before the template appears 1. the browser MUST NOT complete redirection before: 1. the user MUST click on the link in the template
Update history
No events recorded. Our history starts on 1 Jan 2025.
References
Sources
- EPSS by FIRST.org, Free to use, attribution requested. Scores generated by Empirical Security.
- GHSA-qw6h-vgh9-j6wx (GitHub Advisory Database), CC BY 4.0.
- OSV.dev, Per database.
This page is our own presentation: records are shortened, normalised and merged. Licences
Last checked: kev 16 min ago · osv 16 min ago · nvd 77 min ago · epss 16 min ago · JSON · ask via MCP: explain_vulnerability
Also known as GHSA-qw6h-vgh9-j6wx