CVE-2026-140098
JSON

6.9medium

Vite [beta only]: files otuside `server.fs.allow` and not included in `server.fs.deny` can be served by two requests using `?worker`

Severity
6.9medium CVSS:4.0 by GitHub_M
Exploit likelihood
0.65% (higher than 52% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
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.

Affected

Product or packageVersionsReported by
vitejs vite= 8.4.0-beta.1CVE List

Classification

CWE-200

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-140098 changed 2026-12-01CVE Terms of Use
NVDCVE-2026-140098 changed 2026-12-01Public domain