CVE-2024-43800
MEDIUM 4.7CVSS 3.1serve-static vulnerable to template injection that can lead to XSS
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.
- Published
- 10 Sep 2024
- Last modified
- 10 Sep 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-79
- Also known as
- GHSA-cm22-4g7w-348p
- Sources
- NVDJSONOSV GHSA-cm22-4g7w-348pJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | 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 | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 5.0 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.0 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 4.7 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | openjsf | serve-staticcpe:2.3:a:openjsf:serve-static:*:*:*:*:*:node.js:*:* |
< 1.16.0 | 1.16.0 |
| NVD | openjsf | serve-staticcpe:2.3:a:openjsf:serve-static:*:*:*:*:*:node.js:*:* |
>= 2.0.0, < 2.1.0 | 2.1.0 |
| OSV | npm | serve-static | < 1.16.0 | 1.16.0 |
| OSV | npm | serve-static | >= 2.0.0, < 2.1.0 | 2.1.0 |
References
- https://github.com/expressjs/serve-static/commit/0c11fad159898cdc69fd9ab63269b72468ecaf6b · Patch, WEB
- https://github.com/expressjs/serve-static/commit/ce730896fddce1588111d9ef6fdf20896de5c6fa · Patch, WEB
- https://github.com/expressjs/serve-static/security/advisories/GHSA-cm22-4g7w-348p · Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2024-43800 · ADVISORY
- https://github.com/expressjs/serve-static · PACKAGE
History
- 25 Nov 2026 20:56 UTC · NVD: first stored (published 10 Sep 2024)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 10 Sep 2024)