serve-static vulnerabilities

Serve static files

Registry
npm
Latest
2.2.1
License
MIT

2 known advisories

The latest version, 2.2.1, is not affected by any of them. Projects on older versions may be.

Update to the latest version:npm install serve-static@2.2.1

Is your project on an affected serve-static?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

Look after several JavaScript apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie

Security advisories for serve-static

  • LowCVE-2024-43800GHSA-cm22-4g7w-348p10 Sept 2024

    serve-static vulnerable to template injection that can lead to XSS

    Affected
    <1.16.0 · >=2.0.0 <2.1.0
    Fixed in
    1.16.0, 2.1.0
  • LowCVE-2015-1164GHSA-c3x7-gjmx-r2ff31 Aug 2020

    Open Redirect in serve-static

    Affected
    <1.7.2 · >=1.7.0 <1.7.2
    Fixed in
    1.7.2

Is your serve-static version vulnerable?

Which of your client projects still run an old serve-static?

NPMscan reads the package-lock.json, yarn.lock and pnpm-lock.yaml in every GitHub repo you pick and checks each installed version against these advisories, including the packages your packages pull in. Each finding comes with the command that fixes it.

Other npm packages

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily. Package details from the npm registry.