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

Security advisories for serve-static

  • LowGHSA-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
  • LowGHSA-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

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.