Vulnerability · Published Sep 10, 2024 · Assigned by GitHub_M
CVE-2024-43796express vulnerable to XSS via response.redirect()
Medium 5.0
In plain English
A medium-severity cross-site scripting in express from expressjs. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.5% (higher than 42% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS 3.1)5.0Medium
Exploit odds (30 days)0.5%top 57.9% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known
Official description
Express.js minimalist web framework for node. In express < 4.20.0, passing untrusted user input - even after sanitizing it - to response.redirect() may execute untrusted code. This issue is patched in express 4.20.0.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | node-express | no fix listed | DEBIAN-CVE-2024-43796 |
| Debian:13 | node-express | 4.21.0+~cs8.36.26-1 | DEBIAN-CVE-2024-43796 |
| Debian:14 | node-express | 4.21.0+~cs8.36.26-1 | DEBIAN-CVE-2024-43796 |
| npm | express | 4.20.0 | GHSA-qw6h-vgh9-j6wx |
| npm | express | 5.0.0 | GHSA-qw6h-vgh9-j6wx |
Affected products (as reported)
Weakness: CWE-79 · Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L