# CVE-2024-43800: serve-static affected by template injection that can lead to XSS

- 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 51% of CVEs (2026-12-01)
- Published: 2024-09-10T14:50:06.043Z
- Modified: 2026-09-10T03:50:18.868Z
- Also known as: GHSA-cm22-4g7w-348p
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

serve-static serves static files. serve-static passes untrusted user input - even after sanitizing it - to redirect() may execute untrusted code. This issue is patched in serve-static 1.16.0.

(As written by CVE List.)

## Affected

- expressjs serve-static: < 1.16.0; >= 2.0.0, < 2.1.0
- serve-static (npm): before 1.16.0; from 2.0.0 before 2.1.0
- openjsf serve-static: before 1.16.0; from 2.0.0 before 2.1.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/serve-static/security/advisories/GHSA-cm22-4g7w-348p> (vendor-advisory, web)
- <https://github.com/expressjs/serve-static/commit/0c11fad159898cdc69fd9ab63269b72468ecaf6b> (patch, web)
- <https://github.com/expressjs/serve-static/commit/ce730896fddce1588111d9ef6fdf20896de5c6fa> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-43800> (advisory)
- <https://github.com/expressjs/serve-static> (package)

## Sources

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

---

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