CVE-2025-58752 Details
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.
A vulnerability in Vite's handling of HTML files can lead to unintended file serving, bypassing specified `server.fs` settings. This issue affects Vite versions 7.1.0 prior to 7.1.5, 7.0.0 prior to 7.0.7, 6.0.0 prior to 6.3.6, and 5.4.19 and earlier. The vulnerability arises when the Vite development server is exposed to the network and configured as a single-page application (SPA) or multi-page application (MPA). Under these conditions, HTML files located outside the project's root directory can be served, including those in the system's temporary files.
Users can update to Vite versions 7.1.5, 7.0.7, 6.3.6, or 5.4.20, where this vulnerability has been fixed.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Sep 9, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-200 | Exposure of Sensitive Information to an Unauthorized Actor | [email protected] |
| CWE-23 | Relative Path Traversal | [email protected] |
| CWE-284 | Improper Access Control | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| vitejs vite | < 5.4.20 >= 6.0.0, < 6.3.6 >= 7.0.0, < 7.0.7 >= 7.1.0, < 7.1.5 |
CPE
Remediation
| |
Change History
6 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Sep 30, 2026 | CVE Translated | [email protected] |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Sep 17, 2025 | Initial Analysis | [email protected] |
| Sep 9, 2025 | CVE Modified | CISA-ADP |
| Sep 8, 2025 | New CVE Received | [email protected] |