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

High 8.2 Published Updated

An attacker can read arbitrary files on the server by exploiting a missing access control check in the Vite dev server WebSocket interface.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2026-39363?

CVE-2026-39363 is a high-severity path traversal vulnerability in vitejs vite, published on 7 Apr 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

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.

Weakness: CWE-1220, CWE-306, CWE-200

Which versions are affected by CVE-2026-39363?

6 open source packages ship an affected version, including vite. It affects 2 products.

PackageAffectedFixed in
vite npmFrom 6.0.06.4.2
vite npmFrom 6.0.06.4.2
vite npmFrom 7.0.07.3.2
vite npmFrom 7.0.07.3.2
vite npmFrom 8.0.08.0.5
vite npmFrom 8.0.08.0.5

Products include Vitejs Vite, Voidzero Vite\+.

How do I fix CVE-2026-39363?

Upgrade vite to a fixed version for your release line: 6.4.2, 7.3.2 or 8.0.5.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2026-39363 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-39363 exists.

Public exploit code: 1 Nuclei template and 3 proofs of concept on GitHub.

Sources

Also known as GHSA-p9ff-h696-f583, MINI-f68f-xwf4-c44x, MINI-gjgf-fc8w-hmwj, MINI-hmgf-hq9g-mjm5, MINI-rf4p-vjh3-5j42, MINI-rgqg-prpf-jq9h and 2 more.

Is CVE-2026-39363 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free