Exploited now
Vulnerability WatchVulnerabilities, exploits & advisories — updated every 15 minutes
Alerts

Home › CVE › JavaScript

CVE-2026-140098 — vitejs vite

Medium · CVSS 6.9 First seen November 30, 2026

One of 2 vitejs vite vulnerabilities published together by NVD: our article covers all of them.

JavaScriptWebVulnerabilities

Summary

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.

Description: NIST National Vulnerability Database (public domain)

Severity breakdown

Medium · 6.9 CVSS 4.0 base score 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.

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

Vector 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

Weakness

  • CWE-200: Exposure of Sensitive Information to an Unauthorized Actor

Affected and fixed versions

ProductAffected versionsFixed in
vitejs vite= 8.4.0-beta.1—

From the vendor's CVE record; confirm with the vendor advisory before relying on a version number.

References by type

Vendor advisories

Patches and fixed releases

Details from NVD (public domain).

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.

Timeline & sources

References

Related vulnerabilities & news