CVE-2026-140098
published medium CVSS 4.0 · 6.9Vite [beta only]: files otuside `server.fs.allow` and not included in `server.fs.deny` can be served by two requests using `?worker`
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| vitejs | — | vite= 8.4.0-beta.1 | Affected | Not stated | GitHub_M |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 6.9 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:H/SI:N/SA:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| vitejs | vite | = 8.4.0-beta.1 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-200 CWE-200: Exposure of Sensitive Information to an Unauthorized Actor
References
6- https://github.com/vitejs/vite/commit/a78fb8a28db01e83611120012bd5d1189bab68aa
- https://github.com/vitejs/vite/commit/e258ce140eef64cf89ff38c410125abd8726f274
- https://github.com/vitejs/vite/pull/23168
- https://github.com/vitejs/vite/pull/24206
- https://github.com/vitejs/vite/releases/tag/v8.4.0-beta.2
- https://github.com/vitejs/vite/security/advisories/GHSA-qppr-rxr4-jjq2
Provider assertions
2GitHub_M · cna
Vite [beta only]: files otuside `server.fs.allow` and not included in `server.fs.deny` can be served by two requests using `?worker`
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- c1ca4c044a8207c7abde652811953d58f21f0528a6800946e3e4d699e51d388c
- Ingested
- 01 Dec 2026, 14:00:33 UTC
- Source record
- Official CVE record