Install
serve-static
Serve static files
2.2.1Latest, 15 Dec 2025
917MDownloads, last month
0Advisories on the latest
2Advisories, all versions
MITLicence
1.4KStars
6.5/10OpenSSF Scorecard
Source · Homepage · Ask AI Mode · · Markdown
Known advisories
| Severity | Advisory | Fix | Published |
|---|---|---|---|
| Low | serve-static vulnerable to template injection that can lead to XSS CVE-2024-43800 | Fixed in 1.16.0, 2.1.0 | 10 Sep 2024 |
| Low | Open Redirect in serve-static CVE-2015-1164 | Fixed in 1.7.2 | 31 Aug 2020 |
In the news
- Serve Static React Files with NGINX in a Multi-Stage Docker Build dev.to, 13 Jul 2025
- Configure Nginx and Express to correctly serve static files stackoverflow.com, 20 Jan 2025
- How do I configure nginx to serve static files from an AWS S3 bucket? stackoverflow.com, 30 Nov 2024
- How to serve static files from a Spring component project in a JAR, within a main project that depends on it? stackoverflow.com, 28 Jul 2024
- can't get basic express server to serve static js file stackoverflow.com, 30 May 2024
On Hacker News
- A tiny Docker image to serve static websites 374 points, 150 comments, 12 Apr 2022
- You can serve static data over HTTP 156 points, 120 comments, 29 May 2023
- Show HN: LEAR – A simple and fast HTTP server to serve static resources 66 points, 32 comments, 17 Dec 2018
- Show HN: Serve Static GitHub Pages Locally 63 points, 24 comments, 30 Jan 2019
Sources: npm, deps.dev (CC BY 4.0), OSV. Last checked 4 Dec 2026.