express
Affected
- introduced
0, fixed4.20.0(semver)
Fixed versions
4.20.0
Fix
- Fixed version
4.20.0npm install [email protected]
Advisory
Also known as: CVE-2024-43796
express vulnerable to XSS via response.redirect()
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:
Low Basis: The source's own band: LOW
0, fixed 4.20.0 (semver)4.20.0
4.20.0npm install [email protected]5.0.0-alpha.1, fixed 5.0.0 (semver)5.0.0
5.0.0npm install [email protected]Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0