CVEfocus › CVE database › CVE-2024-43800

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

CVSS 5.0 MediumEPSS 0.9% (higher than 56% of CVEs)Published 2024-09-10Updated 2024-09-10Assigner: GitHub_M

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.

CWE-79

What to do

Fixed builds are available from Debian, npm: see the table below for the fixed version per release.

Debian, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

3Fixed
4Fix pending
3Under investigation
5Will not fix
12Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10node-serve-staticFix pendingUBUNTU-CVE-2024-43800
Ubuntu 26.04node-serve-staticUnder investigationUBUNTU-CVE-2024-43800
Ubuntu 25.10node-serve-staticWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2024-43800
Ubuntu 24.04node-serve-staticUnder investigationUBUNTU-CVE-2024-43800
Ubuntu 22.04node-serve-staticUnder investigationUBUNTU-CVE-2024-43800
Ubuntu 20.04node-serve-staticWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2024-43800
Ubuntu 18.04node-serve-staticFix pendingUBUNTU-CVE-2024-43800
Ubuntu 16.04node-serve-staticFix pendingUBUNTU-CVE-2024-43800
Debian 14node-serve-staticFixed2.1.0+~1.15.7-1DEBIAN-CVE-2024-43800
Debian 13node-serve-staticFixed2.1.0+~1.15.7-1DEBIAN-CVE-2024-43800
Debian 12node-serve-staticFix pendingDEBIAN-CVE-2024-43800
Red Hat Enterprise Linux 9gjsNot affected
Red Hat Enterprise Linux 9gjs-develNot affected
Red Hat Enterprise Linux 9pcsNot affected
Red Hat Enterprise Linux 9pcs-snmpNot affected
Red Hat Enterprise Linux 9polkitNot affected
Red Hat Enterprise Linux 9polkit-develNot affected
Red Hat Enterprise Linux 9polkit-docsNot affected
Red Hat Enterprise Linux 9polkit-libsNot affected
Red Hat Enterprise Linux 8mozjs60Not affected
Red Hat Enterprise Linux 8mozjs60-develNot affected
Red Hat Enterprise Linux 8pcsNot affected
Red Hat Enterprise Linux 8pcs-snmpNot affected
Red Hat Enterprise Linux 7thunderbirdWill not fix
Out of support scope
Red Hat Enterprise Linux 6firefoxWill not fix
Out of support scope
Red Hat Enterprise Linux 6thunderbirdWill not fix
Out of support scope
npm libraryserve-staticFixed2.1.0GHSA-cm22-4g7w-348p

What the vendor says

As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.