cvedb.io
CVE-2025-58752
MEDIUM · CVSS 5.3
EPSS exploitation probability: 0%
Published 2025-09-08T23:15:36.350 · Last modified 2026-06-17T09:44:52.560

Summary

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 products

vitejs — vite

Does this affect you?

Add your gear to cvedb and we'll alert you only when vitejs ships something exploited.

Check my exposure →

References

This product uses data from the NVD API but is not endorsed or certified by the NVD. Informational only; not professional security advice.