CVE-2026-53571: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in vitejs vite
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.
AI Analysis
Technical Summary
CVE-2026-53571 is a path traversal vulnerability in vitejs vite's development server on Windows platforms. The server uses server.fs.deny to block direct access to sensitive files (e.g., .env, .env.*, *.{crt,pem}). However, the deny logic fails to properly normalize NTFS alternate data stream (ADS) paths before applying access checks. As a result, requests like /.env::$DATA?raw bypass restrictions because Windows resolves these to the original file's default data stream. Similarly, Windows 8.3 short name compatibility allows accessing files via alternate short names, which vite did not block. This leads to unauthorized disclosure of sensitive file contents. The vulnerability is addressed in vite versions 8.0.16, 7.3.5, and 6.4.3.
Potential Impact
An attacker can bypass file access restrictions on Windows systems running vulnerable vite versions to read sensitive files that should be denied by server.fs.deny. This includes environment variable files (.env) and certificate files (*.crt, *.pem). The exposure of such files can lead to leakage of secrets, credentials, or private keys, potentially compromising application security and confidentiality.
Mitigation Recommendations
This vulnerability is fixed in vite versions 8.0.16, 7.3.5, and 6.4.3. Users should upgrade to one of these versions or later to remediate the issue. No additional mitigation steps are indicated by the vendor advisory. Patch status is confirmed by the fixed versions specified.
CVE-2026-53571: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in vitejs vite
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.
CVSS v4.0
Score 8.2high
Affected software
pkg:npm/vitejs/viteRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-53571 is a path traversal vulnerability in vitejs vite's development server on Windows platforms. The server uses server.fs.deny to block direct access to sensitive files (e.g., .env, .env.*, *.{crt,pem}). However, the deny logic fails to properly normalize NTFS alternate data stream (ADS) paths before applying access checks. As a result, requests like /.env::$DATA?raw bypass restrictions because Windows resolves these to the original file's default data stream. Similarly, Windows 8.3 short name compatibility allows accessing files via alternate short names, which vite did not block. This leads to unauthorized disclosure of sensitive file contents. The vulnerability is addressed in vite versions 8.0.16, 7.3.5, and 6.4.3.
Potential Impact
An attacker can bypass file access restrictions on Windows systems running vulnerable vite versions to read sensitive files that should be denied by server.fs.deny. This includes environment variable files (.env) and certificate files (*.crt, *.pem). The exposure of such files can lead to leakage of secrets, credentials, or private keys, potentially compromising application security and confidentiality.
Mitigation Recommendations
This vulnerability is fixed in vite versions 8.0.16, 7.3.5, and 6.4.3. Users should upgrade to one of these versions or later to remediate the issue. No additional mitigation steps are indicated by the vendor advisory. Patch status is confirmed by the fixed versions specified.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-06-09T19:11:53.483Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a39735beed863c81e396243
Added to database: 06/22/2026, 17:39:39 UTC
Last enriched: 06/22/2026, 17:54:29 UTC
Last updated: 06/22/2026, 21:43:22 UTC
Views: 6
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.