CVE-2026-39363CWE-1220CWE-200CWE-306information-disclosure

CVE-2026-39363

High · published April 8, 2026

CVSS v3.1
7.5
EPSS
3%
Percentile
85.3
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
7.5 · HIGH
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
CVSS v4.0
Not supplied
EPSS
0.02619 · 85.3th percentile
Weaknesses
CWE-1220 · Insufficient Granularity of Access Control; CWE-200 · Exposure of Sensitive Information to an Unauthorized Actor; CWE-306 · Missing Authentication for Critical Function
Published
2026-04-08T00:16Z
Affected products (4)
ProductVersionsFixed in
vitejs/vite≥ 6.0.0, ≤ 6.4.1—
vitejs/vite≥ 7.0.0, ≤ 7.3.1—
vitejs/vite≥ 8.0.0, ≤ 8.0.4—
voidzero/vite\+≤ 0.1.15—
References (9)
EPSS history
Timeline
  • 07 APR 19:10Z
    Vite Affected by Arbitrary File Read via Vite Dev Server WebSocket
    cvelistv5