Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…
EPSS 3.3%top 13%

CVE-2026-39363: CWE-200: Exposure of Sensitive Information to an Unauthorized Actor in vitejs vite

0
High
VulnerabilityCVE-2026-39363cvecve-2026-39363cwe-200cwe-306
Published: 04/07/2026 (04/07/2026, 19:10:44 UTC)
Source: CVE Database V5
Vendor/Project: vitejs
Product: 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

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vuln. Confidentiality
High
Vuln. Integrity
None
Vuln. Availability
None
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N

Affected software

vitejs/vite
pkg:npm/vitejs/vite
Affected versions
6.0.0 <6.4.27.0.0 <7.3.2=8.0.0

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

AILast updated: 07/15/2026, 09:05:48 UTC

Technical Analysis

CVE-2026-39363 affects the Vite frontend tooling framework. The flaw allows an attacker who can connect to the Vite dev server's WebSocket without an Origin header to invoke the fetchModule function via the vite:invoke WebSocket event. By combining file:// URLs with ?raw or ?inline query parameters, the attacker can read arbitrary files on the server as JavaScript strings. This bypasses access controls normally enforced on HTTP requests, such as server.fs.allow. The vulnerability 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. Red Hat advisories confirm the issue and provide patches for affected products.

Potential Impact

An attacker without privileges can disclose sensitive information by reading arbitrary files on the server hosting the Vite development server. This exposure occurs because the WebSocket-based fetchModule execution path does not enforce the access control restrictions applied to HTTP requests. The vulnerability has a CVSS 4.0 base score of 8.2 (high severity), indicating a significant risk of sensitive data exposure without requiring user interaction or privileges.

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 advisories linked provide patches for affected Red Hat products incorporating Vite. No vendor advisory states that no action is required or that the issue is already mitigated; therefore, upgrading is the recommended mitigation.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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
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: 07/15/2026, 09:05:48 UTC

Last updated: 07/31/2026, 19:22:58 UTC

Views: 266

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses