CVE-2025-30208
March 24, 2025
Vite, a provider of frontend development tooling, has a vulnerability in versions prior to 6.2.3, 6.1.2, 6.0.12, 5.4.15, and 4.5.10. "@fs" denies access to files outside of Vite serving allow list. Adding "?raw??" or "?import&raw??" to the URL bypasses this limitation and returns the file content if it exists. This bypass exists because trailing separators such as "?" are removed in several places, but are not accounted for in query string regexes. The contents of arbitrary files can be returned to the browser. Only apps explicitly exposing the Vite dev server to the network (using "--host" or "server.host" config option) are affected. Versions 6.2.3, 6.1.2, 6.0.12, 5.4.15, and 4.5.10 fix the issue.
Affected Packages
https://github.com/vitejs/vite.git (GITHUB):
Affected version(s) >=v6.2.0 <v6.2.3Fix Suggestion:
Update to version v6.2.3https://github.com/vitejs/vite.git (GITHUB):
Affected version(s) >=v6.1.0 <v6.1.2Fix Suggestion:
Update to version v6.1.2https://github.com/vitejs/vite.git (GITHUB):
Affected version(s) >=v5.0.0 <v5.4.14Fix Suggestion:
Update to version v5.4.14https://github.com/vitejs/vite.git (GITHUB):
Affected version(s) >=v2.0.0-alpha.1 <v4.5.10Fix Suggestion:
Update to version v4.5.10https://github.com/vitejs/vite.git (GITHUB):
Affected version(s) >=v6.0.0 <v6.0.12Fix Suggestion:
Update to version v6.0.12vite (NPM):
Affected version(s) >=6.2.0 <6.2.3Fix Suggestion:
Update to version 6.2.3vite (NPM):
Affected version(s) >=5.0.0 <5.4.15Fix Suggestion:
Update to version 5.4.15vite (NPM):
Affected version(s) >=0.1.0 <4.5.10Fix Suggestion:
Update to version 4.5.10vite (NPM):
Affected version(s) >=6.1.0 <6.1.2Fix Suggestion:
Update to version 6.1.2vite (NPM):
Affected version(s) >=6.0.0 <6.0.12Fix Suggestion:
Update to version 6.0.12vite (NPM):
Affected version(s) >=0.1.0 <4.5.10Fix Suggestion:
Update to version 4.5.10Related ResourcesĀ (8)
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
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
Weakness Type (CWE)
EPSS
Base Score:
88.12