LOW 5.0

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:

  1. The attacker MUST control the input to response.redirect()
  2. express MUST NOT redirect before the template appears
  3. the browser MUST NOT complete redirection before:
  4. the user MUST click on the link in the template

Affected Maven artifacts (2)

ArtifactAffected versionsFixed 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

2affected artifacts
21affected versions
12dependent artifacts (est.)
37dependent versions

41% of the dependent artifacts (5) still pull an affected version in their latest release.

DepthDependent versions
Direct
24
2 hops
13

Most used dependents

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