Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessDiscover network-exposed Vite dev server
-
DeliverySend GET /.env::$DATA?raw
-
ExploitBypass server.fs.deny via NTFS ADS path
-
ExecutionServer reads file from disk
-
PersistReceive .env contents in response
-
ImpactHarvest credentials and pivot
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK
2 techniques across 2 tactics: Discovery, Collection The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires all of the following: the Vite dev server must be explicitly bound to a non-loopback interface via the CLI flag |
| Impact | The vendor CVSS:4.0 vector (AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N) scores 8.2 High, reflecting network-reachable, unauthenticated, low-complexity exfiltration of confidential data with an attack requirement (AT:P) for Windows/NTFS deployment. Real-world risk is meaningfully constrained: exploitation requires (1) the dev server explicitly bound to a network interface - not the default |
| Exploit ScenarioDerived | An attacker on the same network as a Windows-based developer who launched |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv3 – Jun 22, 2026
Arbitrary file disclosure in Vite's development server on Windows allows remote unauthenticated attackers to read sensitive files (such as .env, *.pem, *.crt) that are nominally protected by the server.fs.deny allowlist. The flaw stems from Windows-specific path-form quirks (NTFS Alternate Data Stream syntax ::$DATA and 8.3 short filename aliases) that bypass deny-list normalization, and publicly available exploit code exists in the GHSA advisory. Only dev servers explicitly exposed to the network via --host/server.host are reachable.
Earlier versions of this analysis (2)
Arbitrary file disclosure in Vite dev server on Windows allows unauthenticated remote attackers to bypass the server.fs.deny allowlist and retrieve sensitive files such as .env, TLS keys, and certificates by appending NTFS Alternate Data Stream (::$DATA) or 8.3 short-name path forms to the URL. Publicly available exploit code exists (a one-line curl against /.env::$DATA?raw works against a default npm create vite project once the dev server is exposed via --host), and a vendor patch is available; no CISA KEV listing at time of analysis.
Sensitive file disclosure in Vite's development server on Windows allows remote attackers to bypass the server.fs.deny allowlist and retrieve files such as .env, TLS keys, and certificates by abusing NTFS Alternate Data Stream syntax (::$DATA) and 8.3 short filename aliases. Affected versions span Vite 6.x through 8.x and the vite-plus fork, and exploitation is only possible when the dev server is intentionally exposed to the network via --host or server.host. No public exploit identified at time of analysis beyond the vendor-provided PoC in GHSA-fx2h-pf6j-xcff, and the issue is not present in CISA KEV.
RemediationAI
Vendor-released patches are available: upgrade vite to 8.0.16, 7.3.5, or 6.4.3 depending on your major version, and upgrade vite-plus to 0.1.24, per https://github.com/vitejs/vite/security/advisories/GHSA-fx2h-pf6j-xcff. If immediate patching is not possible, remove --host from npm run dev invocations and unset server.host so the dev server binds only to localhost, eliminating remote reachability at the cost of losing LAN/mobile preview access. Additionally, do not store production secrets in .env files inside developer working trees on Windows machines that ever expose the dev server, and on NTFS volumes you may disable 8.3 short-name generation with fsutil 8dot3name set 1 (note: this can break legacy applications that rely on short names). Restricting dev-server access via local firewall rules to trusted source IPs is a useful additional control while you roll out the upgrade.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in npm
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Vite is a popular Node.js-based frontend build tool and development server (pkg:npm/vite, pkg:npm/vite-plus) that serves source files from the project directory during development. The server.fs.deny option implements a denylist intended to block direct HTTP access to sensitive files like .env, .env.*, and *.{crt,pem} within otherwise-allowed directories. This issue is a classic CWE-22 Path Traversal variant: the deny-list matcher operates on the URL-supplied filename string without first canonicalizing Windows-specific alternate path forms. NTFS supports Alternate Data Streams accessed via the filename::$DATA syntax, which the Win32 file APIs resolve back to the file's default data stream, and NTFS also generates legacy 8.3 short names (enabled by default on system volumes) that alias the same underlying file. Vite's deny check sees /.env::$DATA?raw as a non-matching filename and serves it, while the OS resolves it to .env.
Know when Node.js gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
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
Network-reachable and unauthenticated, but AC:H reflects the required Windows/NTFS + non-default --host conditions; only confidentiality is impacted (file read).
Primary rating from Vendor (https://github.com/vitejs/vite).
CVSS VectorVendor: https://github.com/vitejs/vite
Lifecycle Timeline
3DescriptionCVE.org
Summary
The contents of files that are specified by server.fs.deny can be returned to the browser on Windows.
Impact
Only apps that match the following conditions are affected:
- explicitly exposes the Vite dev server to the network (using
--hostorserver.hostconfig option) - the sensitive file exists in the allowed directories specified by
server.fs.allow - either of:
- the sensitive file exists in an NTFS volume
- the dev server is running on Windows and the sensitive file exists in a volume that 8.3 short name generation is enabled (it is enabled by default on system volumes)
Details
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.
PoC
$ npm create vite@latest
$ cd vite-project/
$ npm install
$ npm run devAccess via browser at http://localhost:5173/.env::$DATA?raw <img width="388" height="129" alt="deecc1315123883cfd0f9c26a002845a" src="https://github.com/user-attachments/assets/895c6012-4e2e-4a35-babb-69bbf3ee7170" />
Example expected result:
/.env::$DATA?rawreturns the contents of.env/tls.pem::$DATA?rawreturns the contents oftls.pem
Blast Radius
ecosystem impact- 34 npm packages depend on vite (30 direct, 4 indirect)
- 11 npm packages depend on vite-plus (9 direct, 2 indirect)
Ecosystem-wide dependent count for version 8.0.0 and other introduced versions.
Executive ViewAI
Development teams using Vite on Windows face an immediate threat to application secrets and credentials if their development servers are network-accessible. A critical file disclosure vulnerability (CVE-2026-53571) with publicly available exploit code allows attackers to steal environment variables, API keys, and SSL certificates directly from affected systems. Organizations must immediately identify and remediate network-exposed development infrastructure to prevent credential compromise that could spread to production systems.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.
Remote code execution in n8n's workflow expression evaluation system allows an authenticated user with workflow creation
A vulnerability in the NuPoint Unified Messaging (NPM) component of Mitel MiCollab through 9.8 SP1 FP2 (9.8.1.201) could
FortiOS and FortiProxy contain an authentication bypass via the Node.js websocket module allowing unauthenticated remote
Denial of service against HTTP/2 server implementations allows remote unauthenticated attackers to exhaust server resour
Eval injection vulnerability in the internals.batch function in lib/batch.js in the bassmaster plugin before 1.5.2 for t
Flowise version 3.0.5 contains a remote code execution vulnerability in the CustomMCP node. The mcpServerConfig paramete
Node.js 8.5.0 before 8.6.0 allows remote attackers to access unintended files, because a change to ".." handling was inc
An issue was discovered in the node-serialize package 0.0.4 for Node.js. Rated critical severity (CVSS 9.8), this vulner
OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph
Directory traversal vulnerability in the st module before 0.2.5 for Node.js allows remote attackers to read arbitrary fi
Multiple SQL injection vulnerabilities in the Manage Accounts page in the AccountManagement.asmx service in the Solarwin
A vulnerability in NuPoint Messenger (NPM) of Mitel MiCollab through 9.8.0.33 allows an unauthenticated attacker to cond
EUVD-2026-38303
GHSA-fx2h-pf6j-xcff
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB