Mend.io Vulnerability Database
The largest open source vulnerability database
What is a Vulnerability ID?
New vulnerability? Tell us about it!
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.6
Fix Suggestion:
Update to version v6.3.6
https://github.com/vitejs/vite.git (GITHUB):
Affected version(s) >=v1.0.0-rc.5 <v5.4.20
Fix Suggestion:
Update to version v5.4.20
https://github.com/vitejs/vite.git (GITHUB):
Affected version(s) >=v7.0.0 <v7.0.7
Fix Suggestion:
Update to version v7.0.7
https://github.com/vitejs/vite.git (GITHUB):
Affected version(s) >=v7.1.0 <v7.1.5
Fix Suggestion:
Update to version v7.1.5
vite (NPM):
Affected version(s) >=0.1.0 <5.4.20
Fix Suggestion:
Update to version 5.4.20
vite (NPM):
Affected version(s) >=0.1.0 <5.4.20
Fix Suggestion:
Update to version 5.4.20
vite (NPM):
Affected version(s) >=7.1.0 <7.1.5
Fix Suggestion:
Update to version 7.1.5
vite (NPM):
Affected version(s) >=7.0.0 <7.0.7
Fix Suggestion:
Update to version 7.0.7
vite (NPM):
Affected version(s) >=6.0.0 <6.3.6
Fix Suggestion:
Update to version 6.3.6
Do you need more information?
Contact Us
CVSS 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)
Improper Access Control
Relative Path Traversal
Exposure of Sensitive Information to an Unauthorized Actor
EPSS
Base Score:
0.02