HTML File Exposure in Vite Framework by Vitejs
CVE-2025-58752
2.3LOW
What is CVE-2025-58752?
The Vite framework for frontend tooling possesses a vulnerability that allows the serving of any HTML files present on the machine, contrary to specified server file system settings. This issue arises when the Vite dev server is exposed to the network through configuration options. Notably, it also impacts the preview server, enabling the exposure of HTML files outside the intended output directory. This flaw has been addressed in versions 7.1.5, 7.0.7, 6.3.6, and 5.4.20.
Affected Version(s)
vite < 5.4.20 < 5.4.20
vite >= 6.0.0, < 6.3.6 < 6.0.0, 6.3.6
vite >= 7.0.0, < 7.0.7 < 7.0.0, 7.0.7