CVE-2024-43799
send vulnerable to template injection that can lead to XSS
Description
Impact
passing untrusted user input - even after sanitizing it - to SendStream.redirect() may execute untrusted code
Patches
this issue is patched in send 0.19.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
- the browser MUST NOT complete redirection before:
- the user MUST click on the link in the template
Affected Maven artifacts (2)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.mvnpm » sendvia npm send | < 0.19.0 | 0.19.0 |
| org.webjars.npm » sendvia npm send | < 0.19.0 | 0.19.0 |
Blast radius
41% of the dependent artifacts (5) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 24 |
| 2 hops | 13 |
Most used dependents
- org.webjars.npm » express38 usages
- org.mvnpm » express26 usages
- org.mvnpm » serve-static9 usages
- org.webjars.npm » serve-static8 usages
- org.webjars.npm » browser-sync7 usages
- org.webjars.npm » openlayers4 usages
- org.webjars.npm » closure-util2 usages
- org.mvnpm » tailwind0 usages
- org.webjars.npm » martinez0 usages
- org.webjars.npm » browserstack-runner0 usages
- org.webjars.npm » github-com-openlayers-openlayers0 usages
- org.webjars.npm » reveal-md0 usages
Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
Other ecosystems
Also affects npm (1 package) . See all on OSV
References
| Advisory | NVD CVE-2024-43799 | nvd.nist.gov |
| Package | pillarjs/send | github.com |
| Web | pillarjs/send advisory GHSA-m6fv-jmcg-4jfg | github.com |
| Web | pillarjs/send commit ae4f298 | github.com |
| Web | debian-lts-announce/2025/06/msg00022.html | lists.debian.org |
