Vite [beta only]: files otuside `server.fs.allow` and not included in `server.fs.deny` can be served by two requests using `?worker`
CVE-2026-140098GHSA-qppr-rxr4-jjq2Published 30 Nov 2026, 22:30 UTC
Real-world risk
1.1/ 10Low
Routine
If the vulnerable configuration applies to you: 2.6
PreliminaryFrom the CVSS vector only · confidence low
CVSS
6.9
scored by the vendor (CNA), CVSS 4.0
In plain words
No plain-language summary yet. The original description is below.
Original description (from GitHub_M)
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.
Am I affected?
| Product | Affected versions (from the sources) | Fixed in |
|---|---|---|
| ViteUbiquitous | = 8.4.0-beta.1; = 8.4.0-beta.1 | 8.4.0-beta.2 |
What to do
Update to a fixed version: 8.4.0-beta.2.
Why this score
| Factor | Value | Evidence | × |
|---|---|---|---|
| Impact | MinorReflected XSS, CSRF with low effect, open redirect, minor leak | From the CVSS vector | 0.30 |
| Attacker position | InternetAnyone on the Internet can reach a typical deployment | From the CVSS vector | 1.00 |
| Privileges needed | NoneNo account | From the CVSS vector | 1.00 |
| Victim interaction | NoneNothing | From the CVSS vector | 1.00 |
| Configuration | UncommonNeeds a non-default feature that a minority enables | From the CVSS vector | 0.45 |
| Reliability | ReliableDeterministic: injection, logic bug, path traversal | From the CVSS vector | 1.00 |
Threat level T1: Nothing known (× 0.85)
The default for a new disclosure
EPSS 0.7% chance of exploitation in 30 days (percentile 53), as of 2026-12-02.
The arithmetic
- Prerequisites multiplied together0.450
- Threat T1: Nothing known0.850
- 10 × impact 0.3 × prerequisites 0.45 × threat 0.851.147
- Rounded to one decimal between 0.1 and 101.1
Exploitation and evidence timeline
- 30 Nov 2026 Published
- 2 Dec 2026 Risk 1.1 (cvss fallback)
Weakness
CWE-200
References
- https://github.com/vitejs/vite/security/advisories/GHSA-qppr-rxr4-jjq2vendor-advisory
- https://github.com/vitejs/vite/pull/23168misc
- https://github.com/vitejs/vite/pull/24206misc
- https://github.com/vitejs/vite/commit/a78fb8a28db01e83611120012bd5d1189bab68aamisc
- https://github.com/vitejs/vite/commit/e258ce140eef64cf89ff38c410125abd8726f274misc
- https://github.com/vitejs/vite/releases/tag/v8.4.0-beta.2misc
- https://nvd.nist.gov/vuln/detail/CVE-2026-140098
- https://github.com/advisories/GHSA-qppr-rxr4-jjq2
- CVE-2026-140098 on CVE.org