# CVE-2024-43796: express vulnerable to XSS via response.redirect()

- Severity: Medium 5.0 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.63%, higher than 45% of CVEs (2026-11-30)
- Published: 2024-09-10T14:36:27.380Z
- Modified: 2026-09-10T03:50:18.298Z
- Also known as: GHSA-qw6h-vgh9-j6wx
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- expressjs express: < 4.20.0; >= 5.0.0-alpha.1, < 5.0.0
- express (npm): before 4.20.0; from 5.0.0-alpha.1 before 5.0.0
- openjsf express: before 4.20.0; 5.0.0

## Every score

- GitHub_M: CVSS:3.1 5.0 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L`
- GitHub: CVSS:3.1 5.0 Low `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L`
- GitHub: CVSS:4.0 Low `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:L`
- NVD: CVSS:3.1 4.7 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://github.com/expressjs/express/security/advisories/GHSA-qw6h-vgh9-j6wx> (vendor-advisory, web)
- <https://github.com/expressjs/express/commit/54271f69b511fea198471e6ff3400ab805d6b553> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-43796> (advisory)
- <https://github.com/expressjs/express> (package)

## Sources

- CVE List: [CVE-2024-43796](https://www.cve.org/CVERecord?id=CVE-2024-43796), CVE Terms of Use, modified 2024-09-10
- GitHub Advisory Database: [GHSA-qw6h-vgh9-j6wx](https://github.com/advisories/GHSA-qw6h-vgh9-j6wx), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2024-43796](https://nvd.nist.gov/vuln/detail/CVE-2024-43796), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-43796 · Whole record: https://cve.day/CVE-2024-43796.json · Rebuilt by cve.day 2026-11-25T22:58:45.241Z
