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`
Vulnerability summary
CVE-2026-140098 is a medium (CVSS 6.9) vulnerability in vitejs vite. EPSS estimates a 0.65% chance of exploitation in the next 30 days, higher than 52.5% of scored vulnerabilities.
Not severe (CVSS 6.9, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Timeline
- 30-11-2026PublishedVulnerability first disclosed.
- 01-12-2026Last modifiedVulnerability information updated.
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.
CVSS metrics
3 scores · 3 sources · 1 version- NVDNIST6.9MediumCVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:H/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
- OSV · NpmEcosystem advisory · calculated6.9MediumCVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:H/SI:N/SA:N
EPSS trend
Probability
0.65%
Chance of exploitation in the next 30 days
Percentile
53%
Versus all other CVEs
30-day change
Change unavailable
Change unavailable
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
Npm1 product
- vite≥ 8.4.0-beta.1, < 8.4.0-beta.2
Vitejs1 product
- vite= 8.4.0-beta.1
2 vendors · 2 products
References
8 links- github.com/vitejs/vitePACKAGE