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:
The attacker MUST control the input to response.redirect()
express MUST NOT redirect before the template appears
This PR contains the following updates:
1.14.1
->1.16.0
GitHub Vulnerability Alerts
CVE-2024-43800
Impact
passing untrusted user input - even after sanitizing it - to
redirect()
may execute untrusted codePatches
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:
Release Notes
expressjs/serve-static (serve-static)
### [`v1.16.0`](https://redirect.github.com/expressjs/serve-static/blob/HEAD/HISTORY.md#1160--2024-09-10) [Compare Source](https://redirect.github.com/expressjs/serve-static/compare/v1.15.0...1.16.0) \=================== - Remove link renderization in html while redirecting ### [`v1.15.0`](https://redirect.github.com/expressjs/serve-static/blob/HEAD/HISTORY.md#1150--2022-03-24) [Compare Source](https://redirect.github.com/expressjs/serve-static/compare/v1.14.2...v1.15.0) \=================== - deps: send@0.18.0 - Fix emitted 416 error missing headers property - Limit the headers removed for 304 response - deps: depd@2.0.0 - deps: destroy@1.2.0 - deps: http-errors@2.0.0 - deps: on-finished@2.4.1 - deps: statuses@2.0.1 ### [`v1.14.2`](https://redirect.github.com/expressjs/serve-static/blob/HEAD/HISTORY.md#1142--2021-12-15) [Compare Source](https://redirect.github.com/expressjs/serve-static/compare/v1.14.1...v1.14.2) \=================== - deps: send@0.17.2 - deps: http-errors@1.8.1 - deps: ms@2.1.3 - pref: ignore empty http tokensConfiguration
📅 Schedule: Branch creation - "" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.