CVE-2024-43800

serve-static affected by template injection that can lead to XSS

State
Published
Severity
5.0 Medium
Published
Sep 10, 2024
Updated
Sep 10, 2024
Reserved
Aug 16, 2024

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.15.0 MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:LGitHub_M

Weaknesses

  • CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Affected Products

ProductVersions
serve-staticexpressjs
  • < 1.16.0Affected
  • >= 2.0.0, < 2.1.0Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.