{"id":"CVE-2024-43800","summary":"serve-static affected by template injection that can lead to XSS","details":"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.","aliases":["GHSA-cm22-4g7w-348p"],"modified":"2026-04-10T05:17:11.556845Z","published":"2024-09-10T14:50:06.043Z","related":["CGA-gqh4-c8gf-45p5"],"database_specific":{"cwe_ids":["CWE-79"],"cna_assigner":"GitHub_M","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/43xxx/CVE-2024-43800.json"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/43xxx/CVE-2024-43800.json"},{"type":"ADVISORY","url":"https://github.com/expressjs/serve-static/security/advisories/GHSA-cm22-4g7w-348p"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-43800"},{"type":"FIX","url":"https://github.com/expressjs/serve-static/commit/0c11fad159898cdc69fd9ab63269b72468ecaf6b"},{"type":"FIX","url":"https://github.com/expressjs/serve-static/commit/ce730896fddce1588111d9ef6fdf20896de5c6fa"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/expressjs/serve-static","events":[{"introduced":"0"},{"fixed":"48c73970b129b96cba448e792576ad89b1f9fbed"}],"database_specific":{"versions":[{"introduced":"0"},{"fixed":"1.16.0"}]}},{"type":"GIT","repo":"https://github.com/expressjs/serve-static","events":[{"introduced":"707f803715ccbd2030aa87a6f756fb040a946262"},{"fixed":"87c5f092ed7cd23202f699b08c7f407c2b536df0"}],"database_specific":{"versions":[{"introduced":"2.0.0"},{"fixed":"2.1.0"}]}}],"versions":["v1.0.0","v1.0.1","v1.0.2","v1.0.3","v1.0.4","v1.1.0","v1.10.0","v1.10.1","v1.10.2","v1.10.3","v1.11.0","v1.11.1","v1.11.2","v1.12.0","v1.12.1","v1.12.2","v1.12.3","v1.12.4","v1.12.5","v1.12.6","v1.13.0","v1.13.1","v1.13.2","v1.14.0","v1.14.1","v1.14.2","v1.15.0","v1.2.0","v1.2.1","v1.2.2","v1.2.3","v1.3.0","v1.3.1","v1.3.2","v1.4.0","v1.4.1","v1.4.2","v1.4.3","v1.4.4","v1.5.0","v1.5.1","v1.5.2","v1.5.3","v1.5.4","v1.6.0","v1.6.1","v1.6.2","v1.6.3","v1.6.4","v1.7.0","v1.7.1","v1.7.2","v1.8.0","v1.8.1","v1.9.0","v1.9.1","v1.9.2","v1.9.3","v2.0.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-43800.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L"}]}