Vulnerability · Published Apr 7, 2026 · Assigned by GitHub_M

CVE-2026-39363Vite Affected by Arbitrary File Read via Vite Dev Server WebSocket

High 7.5

In plain English

A high-severity information exposure in vite from vitejs. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 3.4% (higher than 89% of all known vulnerabilities). Ready-made attack tooling exists: Nuclei, public proof-of-concept code. Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)7.5High
Exploit odds (30 days)3.4%top 11.1% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack tooling2Nuclei, Public PoC

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
npmvite8.0.5GHSA-p9ff-h696-f583
npmvite7.3.2GHSA-p9ff-h696-f583
npmvite6.4.2GHSA-p9ff-h696-f583

Affected products (as reported)

VendorProductVersions
vitejs vite >= 8.0.0, < 8.0.5>= 7.0.0, < 7.3.2>= 6.0.0, < 6.4.2
vitejs vite-plus < 0.1.16

Weakness: CWE-200, CWE-306, CWE-1220 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

References