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.16Fix Suggestion:
Update to version v5.4.16https://github.com/vitejs/vite.git (GITHUB):
Affected version(s) >=v1.0.0-rc.5 <v4.5.11Fix Suggestion:
Update to version v4.5.11https://github.com/vitejs/vite.git (GITHUB):
Affected version(s) >=v6.1.0 <v6.1.3Fix Suggestion:
Update to version v6.1.3https://github.com/vitejs/vite.git (GITHUB):
Affected version(s) >=v6.0.0 <v6.0.13Fix Suggestion:
Update to version v6.0.13https://github.com/vitejs/vite.git (GITHUB):
Affected version(s) >=v6.2.0 <v6.2.4Fix Suggestion:
Update to version v6.2.4vite (NPM):
Affected version(s) >=0.1.0 <4.5.11Fix Suggestion:
Update to version 4.5.11vite (NPM):
Affected version(s) >=6.1.0 <6.1.3Fix Suggestion:
Update to version 6.1.3vite (NPM):
Affected version(s) >=0.1.0 <4.5.11Fix Suggestion:
Update to version 4.5.11vite (NPM):
Affected version(s) >=5.0.0 <5.4.16Fix Suggestion:
Update to version 5.4.16vite (NPM):
Affected version(s) >=6.0.0 <6.0.13Fix Suggestion:
Update to version 6.0.13vite (NPM):
Affected version(s) >=6.2.0 <6.2.4Fix Suggestion:
Update to version 6.2.4Related Resources (5)
Do you need more information?
Contact UsCVSS 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)
EPSS
Base Score:
62.36