Two vulnerabilities in the Vite development server can let unauthenticated attackers read sensitive local files when the server is reachable over a network. One flaw allows server.fs.deny protections to be bypassed by appending Vite-recognized query parameters such as ?raw, ?import&raw, or ?url&inline to requests, enabling disclosure of files like .env in HTTP responses. The exposure is especially severe when developers bind Vite to all interfaces, including with --host 0.0.0.0, for testing across devices or network segments.
A second issue affects Vite’s WebSocket RPC interface, where an attacker can connect directly—or potentially through Cross-Site WebSocket Hijacking if origin checks are weak—and send a crafted vite:invoke request calling fetchModule with an absolute file:// path and ?raw. The server can then return the targeted file’s contents inside a JSON response wrapped as JavaScript exports, allowing attackers to recover local data from the developer system. Together, the flaws show that exposed Vite dev servers can become a path to arbitrary file read and leakage of secrets stored on disk.

Map this exposure pattern across your cloud, code, and identities.
7 events from the most recent confirmed update back to the earliest known activity.
Vite patched the dev server WebSocket vulnerability tracked as CVE-2026-39363, which allowed arbitrary local file reads via the `vite:invoke` event and `fetchModule` with `file://` paths plus `?raw` or `?inline`. The issue affected versions 6.0.0 through before 6.4.2, pre-7.3.2 releases in the 7.x line, and pre-8.0.5 releases in the 8.x line.
Vite addressed the `server.fs.deny` bypass vulnerability affecting versions 7.1.0 through 7.3.1 and pre-8.0.5 releases in the 8.x line. The issue allowed blocked files such as `.env` and certificate files to be retrieved over HTTP using specific query parameters.
A second advisory described how an attacker can connect to the Vite dev server WebSocket, or use CSWSH when origin checks are weak, and invoke `fetchModule` with an absolute `file://` URI plus `?raw` to retrieve local file contents.
One advisory detailed that appending Vite-recognized query strings such as `?raw`, `?import&raw`, or `?url&inline` can bypass deny rules and expose sensitive files like `.env` when the dev server is reachable remotely.
Two security advisories were published describing separate arbitrary file-read issues in Vite development servers exposed over the network: one bypassing `server.fs.deny` via query parameters and another abusing the dev server WebSocket RPC interface to read local files.
A Vite vulnerability tracked as CVE-2025-31125 allowed exposure of non-allowed files via query strings such as `?inline&import` or `?raw?import` when the dev server was explicitly exposed to the network. The issue was fixed in versions 4.5.11, 5.4.16, 6.0.13, 6.1.3, and 6.2.4.
A GitHub repository published a proof-of-concept exploit for CVE-2025-30208, describing an arbitrary file-read vulnerability in Vite's /@fs/ path traversal handling within transformMiddleware. The PoC made exploit details publicly available for the issue.
Vulnerabilities, threat actors, malware, products, organizations, and breaches Mallory has linked to this story.
See where this exposure pattern shows up across your cloud, code, supply chain, and non-human identities.
13 references tracked. Mallory keeps watching after this page renders.
cvefeed.io
Open sourcecvereports.com
Open sourcecvefeed.io
Open sourcetenable.com
Open sourceisc.sans.edu
Open sourcefidelissecurity.com
Open sourcegithub.com
Open sourcegithub.com
Open sourceMap indicators from this story to your assets and identify affected systems in minutes.
Every observed campaign, victim, and pivot linked to actors named in this story.
Malware, exploits, and IOCs connected to the activity described here.
YARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Get matching new stories delivered to your team as they break — not the next morning.
Ask questions about this story and take action on the answers.