Incident response on call, 24/7: +385 98 1900 984NewIR Retainer: a team on contract before an attack
HR · EN
Medium 6.9CVE-2026-140098

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

Published 30/11/2026 · Updated 01/12/2026 · vitejs vite

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 products and versions

vitejs vite= 8.4.0-beta.1

CVSS vector, explained

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

Attack vector
Network (from the internet)
Attack complexity
Low
Attack requirements
Present
Privileges required
None (no login)
User interaction
Not required
Confidentiality
Low impact
Integrity
None
Availability
None

Weakness type (CWE)

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

References

Sources: CVE.org (CNA and CISA ADP), CISA KEV, FIRST EPSS. Always check the vendor's official advisory.