Vite [beta only]: files otuside `server.fs.allow` and not included in `server.fs.deny` can be served by two requests using `?worker`
- State
- Published
- Severity
- 6.9 Medium
- Published
- Nov 30, 2026
- Updated
- Nov 30, 2026
- Reserved
- Nov 30, 2026
Description
Vite is a frontend tooling framework for JavaScript. In 8.4.0-beta.1, a network-exposed development server can register a request-chosen file outside server.fs.allow in config.environments.client.safeModulePaths when processing ?worker&import or ?sharedworker&import, while ?wasm, ?init&import, and ?source&import can register request-chosen .wasm files through the same mechanism. An unauthenticated attacker can first request an outside path with one of the applicable queries and then request the same path normally, causing the safe-path check to bypass server.fs.allow and disclose the file unless server.fs.deny matches it. This issue is fixed in 8.4.0-beta.2.
| Product | Versions |
|---|---|
| vite vitejs | = 8.4.0-beta.1 Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 4.0 | 6.9 Medium | GitHub_M |
Weaknesses
- CWE-200 Exposure of Sensitive Information to an Unauthorized Actor
References
- https://github.com/vitejs/vite/security/advisories/GHSA-qppr-rxr4-jjq2
- https://github.com/vitejs/vite/pull/23168
- https://github.com/vitejs/vite/pull/24206
- https://github.com/vitejs/vite/commit/a78fb8a28db01e83611120012bd5d1189bab68aa
- https://github.com/vitejs/vite/commit/e258ce140eef64cf89ff38c410125abd8726f274
- https://github.com/vitejs/vite/releases/tag/v8.4.0-beta.2
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.