CVE-2025-58752
Vite's `server.fs` settings were not applied to HTML files
Also known as GHSA-jqfw-vq24-v9c3
Mitigation
- Upgrade vite to one of 7.1.5, 7.0.7, 6.3.6, 5.4.20 (or later in the same release line).
Who should check
- Projects that depend on npm package vite (>= 7.1.0, < 7.1.5)
- Anyone running vitejs vite < 5.4.20; >= 6.0.0, < 6.3.6; >= 7.0.0, < 7.0.7; >= 7.1.0, < 7.1.5
Vulnerability facts
- Affected
- vite >= 7.1.0, < 7.1.5
- Fixed in
- 7.1.5, 7.0.7, 6.3.6, 5.4.20
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- CVSS
- 2.3 (v4.0, CNA)CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:L/VI:N/VA:N/SC:N/SI:N/SA:NOpen in CVSS calculator
Show all 11 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Attack requirements: Present
- Privileges required: None
- User interaction: Passive
- Confidentiality impact: Low
- Integrity impact: None
- Availability impact: None
- Confidentiality impact on other systems: None
- Integrity impact on other systems: None
- Availability impact on other systems: None
- EPSS
- 0.70% chance of exploitation in 30 days (percentile 49, 2026-11-26)
- CWE
- CWE-23, CWE-200, CWE-284
- Modified
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.
Affected and fixed versions
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2025-58752. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2025-58752.md Affected: vite >= 7.1.0, < 7.1.5 Fixed in: 7.1.5, 7.0.7, 6.3.6, 5.4.20 Steps: 1. Search this machine and project for vite (npm), vitejs vite: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
Patches
- 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
FAQ
Is CVE-2025-58752 being exploited?
There is no confirmed exploitation: CVE-2025-58752 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.70% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2025-58752?
Low: CVSS 2.3 (v4.0, scored by CNA). Remote, no login needed. A user has to take an action, such as opening a link, for the attack to work.
Which versions are affected by CVE-2025-58752?
vite >= 7.1.0, < 7.1.5.
Is there a fix for CVE-2025-58752?
Yes. Fixed in 7.1.5, 7.0.7, 6.3.6, 5.4.20. Upgrade vite to one of 7.1.5, 7.0.7, 6.3.6, 5.4.20 (or later in the same release line).
How do I check if I'm affected by CVE-2025-58752?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.