CVE-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 Nov 30, 2026
·
Updated

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 Software

1 affected component
npm/vite=8.4.0-beta.1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 8.4.0-beta.2

Event History

Nov 30, 2026
CVE Published
via MITRE·10:30 PM
Data Sourced
via MITRE·10:30 PM
DescriptionWeakness
Data Sourced
via OSV·10:30 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·11:17 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which deployments are exposed?

Network-exposed Vite development servers running 8.4.0-beta.1 are affected. The issue concerns files outside server.fs.allow that are not matched by server.fs.deny.

2

What must an attacker do to disclose a file?

No authentication is required. The attacker first registers a chosen outside path using ?worker&import or ?sharedworker&import, or registers a chosen .wasm file using ?wasm, ?init&import, or ?source&import, then requests that same path normally.

3

Does server.fs.deny still provide protection?

Yes. The described disclosure occurs only when the target file is not matched by server.fs.deny; matching deny rules prevent the file from being served.

4

What is the available remediation?

Upgrade to Vite 8.4.0-beta.2, which fixes the issue.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203