# 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\`

- Priority: **Routine**
- Reason: Not severe (CVSS 6.9, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-11-30 · Modified: 2026-12-01
- Aliases: GHSA-qppr-rxr4-jjq2
- Record: https://cvemate.com/vulnerability/CVE-2026-140098 · JSON: https://cvemate.com/vulnerability/CVE-2026-140098/json

## Description

```text
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.
```

## Signals

- CVSS: 6.9 medium (v4.0, CVE.org) 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
- EPSS: 0.65%, percentile 52.591%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- Npm vite (Npm): ≥ 8.4.0-beta.1, \< 8.4.0-beta.2
- vitejs vite: = 8.4.0-beta.1

## References

- <https://github.com/vitejs/vite/security/advisories/GHSA-qppr-rxr4-jjq2>
- <https://github.com/vitejs/vite/pull/23168>
- <https://github.com/vitejs/vite/pull/24206>
- <https://github.com/vitejs/vite/commit/a78fb8a28db01e83611120012bd5d1189bab68aa>
- <https://github.com/vitejs/vite/commit/e258ce140eef64cf89ff38c410125abd8726f274>
- <https://github.com/vitejs/vite/releases/tag/v8.4.0-beta.2>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-140098>
- <https://github.com/vitejs/vite>

---

Data as of 2026-12-05T08:03:49.490Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
