{"id":"CVE-2024-43800","published":"2024-09-10T14:50:06Z","modified":"2024-09-10T19:08:02Z","title":"serve-static affected by template injection that can lead to XSS","vendor":"expressjs","product":"serve-static","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00631,"percentile":0.51183,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://github.com/expressjs/serve-static/security/advisories/GHSA-cm22-4g7w-348p","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/expressjs/serve-static/commit/0c11fad159898cdc69fd9ab63269b72468ecaf6b","tags":["x_refsource_MISC"]},{"url":"https://github.com/expressjs/serve-static/commit/ce730896fddce1588111d9ef6fdf20896de5c6fa","tags":["x_refsource_MISC"]}],"priority":{"score":13.7,"factors":[{"name":"EPSS percentile","points":10.24},{"name":"CVSS severity","points":3.5}]},"vendorSlug":"expressjs","affectedVersions":[{"vendor":"expressjs","product":"serve-static","versions":["< 1.16.0",">= 2.0.0, < 2.1.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-09-10T19:07:51.583443Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"serve-static","vulnerableRanges":["<1.16.0",">=2.0.0, <2.1.0"],"patched":["1.16.0","2.1.0"],"from":["GHSA-cm22-4g7w-348p"],"provenance":"source"}],"summary":{"text":"The serve-static package from expressjs has a flaw where untrusted user input, even after sanitization, is passed to its redirect() function, allowing template injection that can lead to cross-site scripting. An attacker can exploit this over the network without authentication, but it requires a user to interact with a crafted link or page, and the attack is considered high complexity.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:44:18Z"},"euvd":{"id":"EUVD-2024-2771","exploited":false,"provenance":"source"}}