Skip to main content
← All vulnerabilities
CVE-2024-43800GHSA-CM22-4G7W-348P

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

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 1.16.0, 2.1.0
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • expressjs serve-static

    fixed in 1.16.0; From 2.0.0 · fixed in 2.1.0

  • serve-staticnpm

    fixed in 1.16.0

  • serve-staticnpm

    From 2.0.0 · fixed in 2.1.0

References 3

GitHub · expressjs/serve-static