CVE-2026-140098
MEDIUM 6.9CVSS 4.0Vite [beta only]: files otuside `server.fs.allow` and not included in `server.fs.deny` can be served by two requests using `?worker`
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.
- Published
- 30 Nov 2026
- Last modified
- 1 Dec 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Received
- Weakness
- CWE-200
- Also known as
- GHSA-qppr-rxr4-jjq2
- Sources
- NVDJSONCVE ListJSONOSV GHSA-qppr-rxr4-jjq2JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 4.0 | MEDIUM 6.9 | 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/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 |
| CVE List | GitHub_M | CVSS 4.0 | MEDIUM 6.9 | 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 |
| OSV | GitHub | CVSS 4.0 | 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 | |
| CVE List | CISA-ADP | SSVC | Exploitation: none; Automatable: no; Technical Impact: partial |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| CVE List | vitejs | vite | = = 8.4.0-beta.1 | |
| OSV | npm | vite | >= 8.4.0-beta.1, < 8.4.0-beta.2 | 8.4.0-beta.2 |
References
- https://github.com/vitejs/vite/commit/a78fb8a28db01e83611120012bd5d1189bab68aa · x_refsource_MISC, WEB
- https://github.com/vitejs/vite/commit/e258ce140eef64cf89ff38c410125abd8726f274 · x_refsource_MISC, WEB
- https://github.com/vitejs/vite/pull/23168 · x_refsource_MISC, WEB
- https://github.com/vitejs/vite/pull/24206 · x_refsource_MISC, WEB
- https://github.com/vitejs/vite/releases/tag/v8.4.0-beta.2 · x_refsource_MISC, WEB
- https://github.com/vitejs/vite/security/advisories/GHSA-qppr-rxr4-jjq2 · x_refsource_CONFIRM, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-140098 · ADVISORY
- https://github.com/vitejs/vite · PACKAGE
History
- 1 Dec 2026 19:42 UTC · OSV: first stored (published 1 Dec 2026)
- 1 Dec 2026 14:27 UTC · NVD: updated (other details)
- 1 Dec 2026 14:04 UTC · CVE List: updated (other details)
- 30 Nov 2026 23:42 UTC · NVD: first stored (published 30 Nov 2026)
- 30 Nov 2026 22:40 UTC · CVE List: first stored (published 30 Nov 2026)