CVE-2026-39364 Vite has a `server.fs.deny` bypass with queries
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.
Which versions are affected by CVE-2026-39364?
4 open source packages ship an affected version, including vite. It affects 2 products.
| Package | Affected | Fixed in |
|---|---|---|
vite npm | From 7.1.0 | 7.3.2 |
vite npm | From 7.1.0 | 7.3.2 |
vite npm | From 8.0.0 | 8.0.5 |
vite npm | From 8.0.0 | 8.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.
Other vulnerabilities in vitejs vite
- CVE-2025-31125 Vite Vitejs Improper Access Control
- CVE-2026-53571 Vite: `server.fs.deny` bypass on Windows alternate paths
- CVE-2026-39363 Vite Affected by Arbitrary File Read via Vite Dev Server WebSocket
- CVE-2024-23331 Vite dev server option `server.fs.deny` can be bypassed when hosted on case-insensitive filesystem
- CVE-2023-34092 Vite Server Options (server.fs.deny) can be bypassed using double forward-slash (//)
Sources
Also known as GHSA-v2wj-q39q-566r, MINI-2qv7-j87w-cgwp, MINI-73f9-544x-mpp9, MINI-wc8h-63mh-72mq, MINI-xx84-hrc9-j47r.