CVE-2025-58752
published low CVSS 4.0 · 2.3Vite's `server.fs` settings were not applied to HTML files
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| vitejs | — | vite< 5.4.20 · >= 6.0.0, < 6.3.6 · >= 7.0.0, < 7.0.7 · >= 7.1.0, < 7.1.5 | Affected | Not stated | GitHub_M |
Description
Vite is a frontend tooling framework for JavaScript. Prior to versions 7.1.5, 7.0.7, 6.3.6, and 5.4.20, any HTML files on the machine were served regardless of the `server.fs` settings. Only apps that explicitly expose the Vite dev server to the network (using --host or server.host config option) and use `appType: 'spa'` (default) or `appType: 'mpa'` are affected. This vulnerability also affects the preview server. The preview server allowed HTML files not under the output directory to be served. Versions 7.1.5, 7.0.7, 6.3.6, and 5.4.20 fix the issue.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 2.3 / 10
- Severity
- low
- Provider
- GitHub_M · cna
- Vector string
- CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| vitejs | vite | < 5.4.20 (affected)>= 6.0.0, < 6.3.6 (affected)>= 7.0.0, < 7.0.7 (affected)>= 7.1.0, < 7.1.5 (affected) | GitHub_M · cna |
Weaknesses
3- CWE-23 CWE-23: Relative Path Traversal
- CWE-200 CWE-200: Exposure of Sensitive Information to an Unauthorized Actor
- CWE-284 CWE-284: Improper Access Control
References
5- https://github.com/vitejs/vite/commit/0ab19ea9fcb66f544328f442cf6e70f7c0528d5f
- https://github.com/vitejs/vite/commit/14015d794f69accba68798bd0e15135bc51c9c1e
- https://github.com/vitejs/vite/commit/482000f57f56fe6ff2e905305100cfe03043ddea
- https://github.com/vitejs/vite/commit/6f01ff4fe072bcfcd4e2a84811772b818cd51fe6
- https://github.com/vitejs/vite/security/advisories/GHSA-jqfw-vq24-v9c3
Provider assertions
2GitHub_M · cna
Vite's `server.fs` settings were not applied to HTML files
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 42638ae7503498220c7e33e508a04db448485bb3bb233c92cf2bdeaeba1c09db
- Ingested
- 23 Sep 2026, 08:54:07 UTC
- Source record
- Official CVE record