CVE-2026-140098 Vite [beta only]: files otuside `server.fs.allow` and not included in `server.fs.deny` can be served by two requests using `?worker`
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
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.
Upgrade path
2 packages: 1 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| npm vite(npm) | = 8.4.0-beta.1; >= 8.4.0-beta.1, < 8.4.0-beta.2 | 8.4.0-beta.2 | Fixed |
| vitejs vite | = = 8.4.0-beta.1 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| vitejs vite | = = 8.4.0-beta.1 | No fix listed |
| npm vite(npm) | = 8.4.0-beta.1 | No fix listed |
| npm vite(npm) | >= 8.4.0-beta.1, < 8.4.0-beta.2 | 8.4.0-beta.2 |
References
- https://github.com/vitejs/vite/security/advisories/GHSA-qppr-rxr4-jjq2 vendor-advisory
- https://github.com/vitejs/vite/pull/23168 patch
- https://github.com/vitejs/vite/pull/24206 patch
- https://github.com/vitejs/vite/commit/a78fb8a28db01e83611120012bd5d1189bab68aa patch
- https://github.com/vitejs/vite/commit/e258ce140eef64cf89ff38c410125abd8726f274 patch
- https://github.com/vitejs/vite/releases/tag/v8.4.0-beta.2
- ENISA EUVD EUVD-2026-139790 third-party-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com
- github.com product