Vulnerability · Published Jun 22, 2026 · Assigned by GitHub_M
CVE-2026-53571Vite: `server.fs.deny` bypass on Windows alternate paths
High 8.2
In plain English
A high-severity path traversal in vite from vitejs. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.6% (higher than 48% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code. Fixed versions are available - upgrade the affected package.
Official description
Vite is a frontend tooling framework for JavaScript. Prior to 8.0.16, 7.3.5, and 6.4.3, the contents of files that are specified by server.fs.deny can be returned to the browser on Windows. Vite’s dev server denies direct access to sensitive files through server.fs.deny, including entries such as .env, .env.*, and *.{crt,pem}. However, on Windows, the deny logic does not correctly normalize NTFS ADS path forms before access checks are applied. Because of this, requests such as /.env::$DATA?raw are treated as allowed paths, while Windows resolves them to the original file's default data stream. Similar to that, Windows allows accessing a file using a different name with the 8.3 short name compatibility feature. Vite did not reject accessing files via them. This vulnerability is fixed in 8.0.16, 7.3.5, and 6.4.3.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| npm | vite | 8.0.16 | GHSA-fx2h-pf6j-xcff |
| npm | vite | 7.3.5 | GHSA-fx2h-pf6j-xcff |
| npm | vite | 6.4.3 | GHSA-fx2h-pf6j-xcff |
| npm | vite-plus | 0.1.24 | GHSA-fx2h-pf6j-xcff |
Affected products (as reported)
Weakness: CWE-22, CWE-200 · Vector: CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
References
- https://github.com/vitejs/vite/security/advisories/GHSA-fx2h-pf6j-xcff x_refsource_CONFIRM