Mend.io Vulnerability Database
The largest open source vulnerability database
What is a Vulnerability ID?
New vulnerability? Tell us about it!
CVE-2026-39363
Published:April 07, 2026
Updated:April 25, 2026
Vite is a frontend tooling framework for JavaScript. From 6.0.0 to before 6.4.2, 7.3.2, and 8.0.5, if it is possible to connect to the Vite dev server’s WebSocket without an Origin header, an attacker can invoke fetchModule via the custom WebSocket event vite:invoke and combine file://... with ?raw (or ?inline) to retrieve the contents of arbitrary files on the server as a JavaScript string (e.g., export default "..."). The access control enforced in the HTTP request path (such as server.fs.allow) is not applied to this WebSocket-based execution path. This vulnerability is fixed in 6.4.2, 7.3.2, and 8.0.5.
Affected Packages
https://github.com/vitejs/vite.git (GITHUB):
Affected version(s) >=v7.0.0 <v7.3.2
Fix Suggestion:
Update to version v7.3.2
https://github.com/vitejs/vite.git (GITHUB):
Affected version(s) >=v8.0.0 <v8.0.5
Fix Suggestion:
Update to version v8.0.5
https://github.com/vitejs/vite.git (GITHUB):
Affected version(s) >=v6.0.0 <v6.4.2
Fix Suggestion:
Update to version v6.4.2
vite (NPM):
Affected version(s) >=7.0.0 <7.3.2
Fix Suggestion:
Update to version 7.3.2
vite (NPM):
Affected version(s) >=6.0.0 <6.4.2
Fix Suggestion:
Update to version 6.4.2
vite-plus (NPM):
Affected version(s) >=0.0.1 <0.1.16
Fix Suggestion:
Update to version 0.1.16
vite (NPM):
Affected version(s) >=8.0.0 <8.0.5
Fix Suggestion:
Update to version 8.0.5
Do you need more information?
Contact Us
CVSS v4
Base Score:
8.2
Attack Vector
NETWORK
Attack Complexity
LOW
Attack Requirements
PRESENT
Privileges Required
NONE
User Interaction
NONE
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:
7.5
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
NONE
Availability
NONE
Weakness Type (CWE)
Exposure of Sensitive Information to an Unauthorized Actor
Missing Authentication for Critical Function
EPSS
Base Score:
2.33