serve-static
Affected
- introduced
0, fixed1.16.0(semver)
Fixed versions
1.16.0
Fix
- Fixed version
1.16.0npm install [email protected]
Advisory
Also known as: CVE-2024-43800
serve-static vulnerable to template injection that can lead to XSS
Impact
passing untrusted user input - even after sanitizing it - to redirect() may execute untrusted code
Patches
this issue is patched in serve-static 1.16.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 1.16.0 (semver)1.16.0
1.16.0npm install [email protected]2.0.0, fixed 2.1.0 (semver)2.1.0
2.1.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