Home / static-web-server / static-web-server / CVE-2024-32966
CVE-2024-32966: is it exploited, and which versions of static-web-server are affected and fixed?
CVE-2024-32966 is a cross-site scripting (XSS) vulnerability in static-web-server. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 16:39 UTC). Affected: static-web-server before 2.30.0 (GitHub advisory GHSA-rwfq-v4hq-h7fg). Fixed in 2.30.0 (GitHub advisory GHSA-rwfq-v4hq-h7fg). Severity: Medium (5.8, CVSS 3.1, from GitHub_M).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 16:39 UTC, CVE record November 19, 2026, 07:11 UTC and NVD November 19, 2026, 07:30 UTC.
What is CVE-2024-32966?
Stored Cross-site Scripting in directory listings via file names in static-web-server
Static Web Server (SWS) is a tiny and fast production-ready web server suitable to serve static web files or assets. In affected versions if directory listings are enabled for a directory that an untrusted user has upload privileges for, a malicious file name like `<img src=x onerror=alert(1)>.txt` will allow JavaScript code execution in the context of the web server’s domain. SWS generally does not perform escaping of HTML entities on any values inserted in the directory listing. At the very least `file_name` and `current_path` could contain malicious data however. `file_uri` could also be malicious but the relevant scenarios seem to be all caught by hyper. For any web server that allow users to upload files or create directories under a name of their choosing this becomes a stored Cross-site Scripting vulnerability. Users are advised to upgrade. There are no known workarounds for this vulnerability.
From the CVE record by GitHub_M, last updated August 2, 2024, 02:27 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| static-web-server | static-web-server | < 2.30.0 |
As the CVE record by GitHub_M states it, last updated August 2, 2024. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| crates.io | static-web-server | < 2.30.0 | 2.30.0 | GHSA-rwfq-v4hq-h7fg |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated May 1, 2024. Summary: static-web-server vulnerable to stored Cross-site Scripting in directory listings via file names.
How severe is CVE-2024-32966?
| Score | Version | Vector | Source |
|---|---|---|---|
| Medium 5.8 | CVSS 3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:L | GitHub_M |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2024-32966 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: poc; automatable: no; technical impact: partial (CISA ADP, May 1, 2024)
- EPSS
- 0.37% probability of exploitation activity in the next 30 days, percentile 32.9 (FIRST EPSS, scores of December 3, 2026)
What kind of flaw is it?
- CWE-79 Improper Neutralization of Input During Web Page Generation
- CWE-80 Improper Neutralization of Script-Related HTML Tags in a Web Page
Where are the vendor advisories and references?
- https://github.com/static-web-server/static-web-server/security/advisories/GHSA-rwfq-v4hq-h7fg x_refsource_CONFIRM
When was it published, and where is the official record?
- Reserved
- April 22, 2024
- Published
- May 1, 2024, 05:39 UTC
- CVE record updated
- August 2, 2024, 02:27 UTC by GitHub_M
- NVD
- Deferred, last modified June 17, 2026, 07:30 UTC
- Last checked
- CVE list November 19, 2026, 07:11 UTC; NVD November 19, 2026, 07:30 UTC; KEV December 3, 2026, 16:39 UTC; EPSS December 3, 2026
- Official record
- cve.org · NVD
What other CVEs affect static-web-server?
- Aug 26, 2026CVE-2026-75601 static-web-server: missing authentication for a critical function
- Feb 21, 2026CVE-2026-27480 static-web-server: observable Response Discrepancy
- Dec 9, 2025CVE-2025-67487 static-web-server: UNIX Symbolic Link (Symlink) Following
Every CVE in static-web-server
Questions about CVE-2024-32966
Is CVE-2024-32966 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 16:39 UTC. FIRST's EPSS gives it a 0.37% chance of exploitation activity in the next 30 days (scores of December 3, 2026).
Which versions of static-web-server are affected by CVE-2024-32966?
static-web-server before 2.30.0, per the GitHub advisory GHSA-rwfq-v4hq-h7fg. The tables above give every range the sources list.
Which version fixes CVE-2024-32966?
2.30.0, per the GitHub advisory GHSA-rwfq-v4hq-h7fg. Check the vendor's advisory before you rely on it.
How severe is CVE-2024-32966?
Medium (5.8, CVSS 3.1, from GitHub_M). The severity table above shows each score with its source.
Where is the official record of CVE-2024-32966?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.