Home › CVE › JavaScript
CVE-2026-140098 — vitejs vite
One of 2 vitejs vite vulnerabilities published together by NVD: our article covers all of them.
JavaScriptWebVulnerabilitiesSummary
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.
Severity breakdown
Medium · 6.9
An attacker without an account can exploit this over the network, without any user action, but only under specific conditions.
- Attack from
- the network (remotely)
- Attack complexity
- low (no special conditions)
- Special conditions
- only in some setups or conditions
- Login needed
- no
- User action needed
- no
- Impact
- low on confidentiality, none on integrity and availability
- Impact on other systems
- high on confidentiality, none on integrity and availability
Weakness
- CWE-200: Exposure of Sensitive Information to an Unauthorized Actor
Affected and fixed versions
| Product | Affected versions | Fixed in |
|---|---|---|
| vitejs vite | = 8.4.0-beta.1 | — |
References by type
Vendor advisories
Patches and fixed releases
Affected
- vitejs vite
What to do
- Follow the vendor advisory and the references below for fixed versions and workarounds.
Frequently asked questions
What is CVE-2026-140098?
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. Weakness type: Exposure of Sensitive Information to an Unauthorized Actor (CWE-200).
How severe is CVE-2026-140098?
CVE-2026-140098 has a CVSS 4.0 base score of 6.9 (medium), from the CNA (github.com). An attacker without an account can exploit this over the network, without any user action, but only under specific conditions.
Is CVE-2026-140098 being exploited?
Not as far as is known: CVE-2026-140098 is not in CISA's Known Exploited Vulnerabilities catalog as of December 1, 2026.
Which versions are affected by CVE-2026-140098?
vitejs vite = 8.4.0-beta.1.
How do I fix CVE-2026-140098?
Apply the update or mitigation in the vendor's advisory, linked on this page under Vendor advisories.