CVE-2026-39363: CWE-200: Exposure of Sensitive Information to an Unauthorized Actor in vitejs vite
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.
AI Analysis
Technical Summary
The vulnerability in vitejs vite affects versions 6.0.0 to before 6.4.2, 7.3.2, and 8.0.5. It allows an attacker who can connect to the Vite development server's WebSocket without an Origin header to invoke the fetchModule function via the vite:invoke event. This invocation bypasses HTTP request path access controls such as server.fs.allow, enabling the attacker to read arbitrary files on the server as JavaScript strings by combining file:// URLs with ?raw or ?inline query parameters. The issue is resolved in vite versions 6.4.2, 7.3.2, and 8.0.5.
Potential Impact
An attacker can expose sensitive information by reading arbitrary files on the server hosting the Vite development server. This exposure occurs without authentication or user interaction and bypasses configured access controls for file system access. The vulnerability could lead to disclosure of confidential data, source code, or configuration files.
Mitigation Recommendations
This vulnerability is fixed in vite versions 6.4.2, 7.3.2, and 8.0.5. Users should upgrade to one of these versions or later to remediate the issue. No other mitigation or temporary workaround is indicated in the available data.
CVE-2026-39363: CWE-200: Exposure of Sensitive Information to an Unauthorized Actor in vitejs vite
Description
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.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in vitejs vite affects versions 6.0.0 to before 6.4.2, 7.3.2, and 8.0.5. It allows an attacker who can connect to the Vite development server's WebSocket without an Origin header to invoke the fetchModule function via the vite:invoke event. This invocation bypasses HTTP request path access controls such as server.fs.allow, enabling the attacker to read arbitrary files on the server as JavaScript strings by combining file:// URLs with ?raw or ?inline query parameters. The issue is resolved in vite versions 6.4.2, 7.3.2, and 8.0.5.
Potential Impact
An attacker can expose sensitive information by reading arbitrary files on the server hosting the Vite development server. This exposure occurs without authentication or user interaction and bypasses configured access controls for file system access. The vulnerability could lead to disclosure of confidential data, source code, or configuration files.
Mitigation Recommendations
This vulnerability is fixed in vite versions 6.4.2, 7.3.2, and 8.0.5. Users should upgrade to one of these versions or later to remediate the issue. No other mitigation or temporary workaround is indicated in the available data.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-04-06T21:29:17.349Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 69d55f07aaed68159a562941
Added to database: 4/7/2026, 7:46:15 PM
Last enriched: 4/7/2026, 8:01:55 PM
Last updated: 4/8/2026, 1:52:03 AM
Views: 6
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.