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

- Severity: Medium 6.9 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.65%, higher than 52% of CVEs (2026-12-01)
- Published: 2026-11-30T22:30:38.385Z
- Modified: 2026-12-01T19:15:03.090Z
- Also known as: GHSA-qppr-rxr4-jjq2
- Weaknesses: CWE-200
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- vitejs vite: = 8.4.0-beta.1
- vite (npm): from 8.4.0-beta.1 before 8.4.0-beta.2

## Every score

- GitHub_M: CVSS:4.0 6.9 Medium `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`
- GitHub: CVSS:4.0 Medium `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`

## References

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

## Sources

- CVE List: [CVE-2026-140098](https://www.cve.org/CVERecord?id=CVE-2026-140098), CVE Terms of Use, modified 2026-12-01
- GitHub Advisory Database: [GHSA-qppr-rxr4-jjq2](https://github.com/advisories/GHSA-qppr-rxr4-jjq2), CC-BY-4.0, modified 2026-12-01
- NVD: [CVE-2026-140098](https://nvd.nist.gov/vuln/detail/CVE-2026-140098), Public domain, modified 2026-12-01

---

Page: https://cve.day/CVE-2026-140098 · Whole record: https://cve.day/CVE-2026-140098.json · Rebuilt by cve.day 2026-12-01T19:57:25.565Z
