Mend.io Vulnerability Database
The largest open source vulnerability database
What is a Vulnerability ID?
New vulnerability? Tell us about it!
CVE-2025-31125
March 31, 2025
Vite is a frontend tooling framework for javascript. Vite exposes content of non-allowed files using ?inline&import or ?raw?import. Only apps explicitly exposing the Vite dev server to the network (using --host or server.host config option) are affected. This vulnerability is fixed in 6.2.4, 6.1.3, 6.0.13, 5.4.16, and 4.5.11.
Affected Packages
https://github.com/vitejs/vite.git (GITHUB):
Affected version(s) >=v5.0.0 <v5.4.16
Fix Suggestion:
Update to version v5.4.16
https://github.com/vitejs/vite.git (GITHUB):
Affected version(s) >=v1.0.0-rc.5 <v4.5.11
Fix Suggestion:
Update to version v4.5.11
https://github.com/vitejs/vite.git (GITHUB):
Affected version(s) >=v6.1.0 <v6.1.3
Fix Suggestion:
Update to version v6.1.3
https://github.com/vitejs/vite.git (GITHUB):
Affected version(s) >=v6.0.0 <v6.0.13
Fix Suggestion:
Update to version v6.0.13
https://github.com/vitejs/vite.git (GITHUB):
Affected version(s) >=v6.2.0 <v6.2.4
Fix Suggestion:
Update to version v6.2.4
vite (NPM):
Affected version(s) >=0.1.0 <4.5.11
Fix Suggestion:
Update to version 4.5.11
vite (NPM):
Affected version(s) >=6.1.0 <6.1.3
Fix Suggestion:
Update to version 6.1.3
vite (NPM):
Affected version(s) >=0.1.0 <4.5.11
Fix Suggestion:
Update to version 4.5.11
vite (NPM):
Affected version(s) >=5.0.0 <5.4.16
Fix Suggestion:
Update to version 5.4.16
vite (NPM):
Affected version(s) >=6.0.0 <6.0.13
Fix Suggestion:
Update to version 6.0.13
vite (NPM):
Affected version(s) >=6.2.0 <6.2.4
Fix Suggestion:
Update to version 6.2.4
Do you need more information?
Contact Us
CVSS v4
Base Score:
6
Attack Vector
NETWORK
Attack Complexity
HIGH
Attack Requirements
NONE
Privileges Required
NONE
User Interaction
PASSIVE
Vulnerable System Confidentiality
HIGH
Vulnerable System Integrity
NONE
Vulnerable System Availability
NONE
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
Exploit Maturity
ATTACKED
CVSS v3
Base Score:
5.3
Attack Vector
NETWORK
Attack Complexity
HIGH
Privileges Required
NONE
User Interaction
REQUIRED
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
NONE
Availability
NONE
Exploit Maturity
HIGH
Weakness Type (CWE)
Exposure of Sensitive Information to an Unauthorized Actor
Improper Access Control
EPSS
Base Score:
62.36