CVE-2025-58752
September 08, 2025
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 Packages
https://github.com/vitejs/vite.git (GITHUB):
Affected version(s) >=v6.0.0 <v6.3.6Fix Suggestion:
Update to version v6.3.6https://github.com/vitejs/vite.git (GITHUB):
Affected version(s) >=v1.0.0-rc.5 <v5.4.20Fix Suggestion:
Update to version v5.4.20https://github.com/vitejs/vite.git (GITHUB):
Affected version(s) >=v7.0.0 <v7.0.7Fix Suggestion:
Update to version v7.0.7https://github.com/vitejs/vite.git (GITHUB):
Affected version(s) >=v7.1.0 <v7.1.5Fix Suggestion:
Update to version v7.1.5vite (NPM):
Affected version(s) >=0.1.0 <5.4.20Fix Suggestion:
Update to version 5.4.20vite (NPM):
Affected version(s) >=0.1.0 <5.4.20Fix Suggestion:
Update to version 5.4.20vite (NPM):
Affected version(s) >=7.1.0 <7.1.5Fix Suggestion:
Update to version 7.1.5vite (NPM):
Affected version(s) >=7.0.0 <7.0.7Fix Suggestion:
Update to version 7.0.7vite (NPM):
Affected version(s) >=6.0.0 <6.3.6Fix Suggestion:
Update to version 6.3.6Related Resources (8)
Do you need more information?
Contact UsCVSS v4
Base Score:
2.3
Attack Vector
NETWORK
Attack Complexity
LOW
Attack Requirements
PRESENT
Privileges Required
NONE
User Interaction
PASSIVE
Vulnerable System Confidentiality
LOW
Vulnerable System Integrity
NONE
Vulnerable System Availability
NONE
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
5.3
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
LOW
Integrity
NONE
Availability
NONE
Weakness Type (CWE)
EPSS
Base Score:
0.02