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
CVE-2026-39363 is an information disclosure vulnerability in Vite's development server WebSocket handling. If an attacker connects without an Origin header, they can invoke the fetchModule function via a custom WebSocket event 'vite:invoke' and combine 'file://...' with query parameters like '?raw' or '?inline' to retrieve arbitrary file contents as JavaScript strings. This bypasses the access control enforced on HTTP request paths, such as server.fs.allow. The flaw affects Vite versions >=6.0.0 <6.4.2, >=7.0.0 <7.3.2, and =8.0.0. Fixes are available in versions 6.4.2, 7.3.2, and 8.0.5. The vulnerability has a CVSS 3.1 base score of 8.2 (high severity) with network attack vector, low complexity, no privileges required, no user interaction, and high confidentiality impact.
Potential Impact
An attacker can remotely connect to the Vite development server WebSocket without an Origin header and retrieve arbitrary files from the server, leading to unauthorized disclosure of sensitive information. This bypasses normal access control restrictions that apply to HTTP requests, potentially exposing source code or other sensitive data stored on the server. There is no impact on integrity or availability reported.
Mitigation Recommendations
Fixes for this vulnerability are available in Vite versions 6.4.2, 7.3.2, and 8.0.5. Users should upgrade to these or later versions to remediate the issue. The Red Hat advisory notes that no alternative mitigations meet their criteria for ease of use and applicability, so upgrading is the recommended action. There is no indication that the vulnerability is mitigated by configuration changes or other workarounds.
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.
CVSS v4.0
Score 8.2high
Affected software
vitejs
vite
vitejs
vite-plus
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-39363 is an information disclosure vulnerability in Vite's development server WebSocket handling. If an attacker connects without an Origin header, they can invoke the fetchModule function via a custom WebSocket event 'vite:invoke' and combine 'file://...' with query parameters like '?raw' or '?inline' to retrieve arbitrary file contents as JavaScript strings. This bypasses the access control enforced on HTTP request paths, such as server.fs.allow. The flaw affects Vite versions >=6.0.0 <6.4.2, >=7.0.0 <7.3.2, and =8.0.0. Fixes are available in versions 6.4.2, 7.3.2, and 8.0.5. The vulnerability has a CVSS 3.1 base score of 8.2 (high severity) with network attack vector, low complexity, no privileges required, no user interaction, and high confidentiality impact.
Potential Impact
An attacker can remotely connect to the Vite development server WebSocket without an Origin header and retrieve arbitrary files from the server, leading to unauthorized disclosure of sensitive information. This bypasses normal access control restrictions that apply to HTTP requests, potentially exposing source code or other sensitive data stored on the server. There is no impact on integrity or availability reported.
Mitigation Recommendations
Fixes for this vulnerability are available in Vite versions 6.4.2, 7.3.2, and 8.0.5. Users should upgrade to these or later versions to remediate the issue. The Red Hat advisory notes that no alternative mitigations meet their criteria for ease of use and applicability, so upgrading is the recommended action. There is no indication that the vulnerability is mitigated by configuration changes or other workarounds.
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
- Vendor Advisory Urls
- [{"url":"https://access.redhat.com/security/cve/CVE-2026-39363","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:24761","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:24762","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:24866","vendor":"Red Hat"}]
Threat ID: 69d55f07aaed68159a562941
Added to database: 04/07/2026, 19:46:15 UTC
Last enriched: 08/17/2026, 13:17:38 UTC
Last updated: 09/14/2026, 22:01:33 UTC
Views: 300
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.
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.