Skip to content
OpenAdvisories

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.

Affected products

VendorProductAffectedFixed
expressjs serve-static < 1.16.0, >= 2.0.0, < 2.1.0 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 node-serve-static 2.1.0+~1.15.7-1 —
Debian 13 node-serve-static 2.1.0+~1.15.7-1 —
Debian 12 node-serve-static No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 node-serve-static No fix yet —
Ubuntu 26.04 LTS node-serve-static No fix yet —
Ubuntu 25.10 node-serve-static No fix yet —
Ubuntu 24.04 LTS node-serve-static No fix yet —
Ubuntu 22.04 LTS node-serve-static No fix yet —
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS node-serve-static No fix yet —
Ubuntu 18.04 LTS node-serve-static No fix yet —
Ubuntu 16.04 LTS node-serve-static No fix yet —

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 nodejs-nodemon No fix yet —
Azure Linux 2 (CBL-Mariner) nodejs-nodemon No fix yet —
Azure Linux 2 (CBL-Mariner) reaper 3.1.1-13 —

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling argo-workflows 3.6.5-r2 —
Wolfi rolling kubeflow-centraldashboard 1.9.0-r4 —
Wolfi rolling kubeflow-pipelines +11 2.2.0-r12 —
Wolfi rolling sqlpad +1 7.5.0-r1 —

Affected packages

EcosystemPackageAffectedFixedRecord
npm serve-static < 1.16.0 1.16.0 GHSA-cm22-4g7w-348p
npm serve-static >= 2.0.0, < 2.1.0 2.1.0 GHSA-cm22-4g7w-348p

Advisories 4

References