CVE-2026-39364 Vite has a `server.fs.deny` bypass with queries

High 8.2 Published Updated

Attackers can bypass file access restrictions on the Vite dev server to read sensitive files like .env by appending specific query parameters.

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-39364?

CVE-2026-39364 is a high-severity 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 7.1.0 to before 7.3.2 and 8.0.5, on the Vite dev server, files that should be blocked by server.fs.deny (e.g., .env, *.crt) can be retrieved with HTTP 200 responses when query parameters such as ?raw, ?import&raw, or ?import&url&inline are appended. This vulnerability is fixed in 7.3.2 and 8.0.5.

Weakness: CWE-472, CWE-284, CWE-180

Which versions are affected by CVE-2026-39364?

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

PackageAffectedFixed in
vite npmFrom 7.1.07.3.2
vite npmFrom 7.1.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-39364?

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

Is CVE-2026-39364 being exploited?

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

Public exploit code: 1 Nuclei template.

Sources

Also known as GHSA-v2wj-q39q-566r, MINI-2qv7-j87w-cgwp, MINI-73f9-544x-mpp9, MINI-wc8h-63mh-72mq, MINI-xx84-hrc9-j47r.

Is CVE-2026-39364 in your software?

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

Check your SBOMs for free