CVE Catalog

CVE-2026-39363

HighCVSS 7.5
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

High risk
3.32%

88th percentile - higher than 88% of all known CVEs

Summary

A vulnerability in Vite (a frontend tooling framework for JavaScript) from 6.0.0 to before 6.4.2, 7.3.2, and 8.0.5 allows an attacker who can connect to the Vite dev server's WebSocket without an Origin header to invoke fetchModule via the vite:invoke event and read arbitrary files on the server as a JavaScript string. HTTP access controls are not applied to this WebSocket channel.

Risk Assessment

An attacker can read arbitrary files on the dev server, including configuration and source files, potentially leading to disclosure of sensitive data.

Recommendation

Update Vite to version 6.4.2, 7.3.2, or 8.0.5 (depending on your major version).

Other vulnerabilities in Vite

See all
Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS