CVE Catalog

CVE-2025-58752

MediumCVSS 5.3
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.61%

47th percentile - higher than 47% of all known CVEs

Summary

Vite before versions 7.1.5, 7.0.7, 6.3.6, and 5.4.20 serves any HTML files on the machine regardless of server.fs settings. Affects apps that expose the dev server to the network and use appType 'spa' or 'mpa'. The preview server is also vulnerable.

Risk Assessment

An attacker could access HTML files outside the output directory, potentially exposing sensitive information or enabling further attacks.

Recommendation

Upgrade Vite to version 7.1.5, 7.0.7, 6.3.6, or 5.4.20 (or later). If unable to upgrade, do not expose the dev server to the network.

Other vulnerabilities in Vite

See all
Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS