Vite information disclosure in beta dev server file access
- Exploited
- No known exploitation
- Fix
- See vendor advisory
- Who is exposed
- Not reported
Summary
Vite, a frontend tooling framework for JavaScript, has a flaw in its beta development server that lets an unauthenticated attacker over the network read files outside the directories `server.fs.allow` permits, unless `server.fs.deny` blocks them. The attacker sends two requests using `?worker`, `?sharedworker`, `?wasm`, `?init`, or `?source` queries to register an outside path as safe, then requests that same file normally. This affects only the 8.4.0 beta releases and is fixed in a later beta.
Written by a model
Original 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.
What to do
Check your systems with an agent
Paste this into a coding or ops agent. It checks your systems read-only and reports a table per asset.
Check whether my systems are affected by 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`), using the cve.now data below.
Rules: work read-only. Do not run exploit code, proof-of-concept scripts or scanners that send attack payloads, and do not change any configuration, package, image or deployment. Report findings only.
What cve.now has for CVE-2026-140098 (entry last updated 2026-11-30):
Affected:
- vitejs vite: versions 8.4.0-beta.1
Fixed versions: none listed yet.
Setup: unknown whether the bug needs a non-default feature or setting. Check the advisory.
CISA KEV: CVE-2026-140098 is not listed as of cve.now's last read.
This KEV status is for CVE-2026-140098 only. If you also check another CVE, look up its own KEV status; never assume it from this one.
How to check:
- Installed software: check what is actually running, not what a repo declares. Read the version from each host, container image and Kubernetes node (the binary's version output, the OS package database, image layers), and check whether the conditions above hold there. Distribution packages may carry a backported fix under an older version number; confirm against the distribution's own advisory.
Verify against the linked advisories before concluding, and cite the date you read each one:
- 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
Do not conclude an asset is unaffected unless you checked it and the evidence covers both its version and the conditions above. If you could not check something, mark it unknown and say what is missing.
Report a table with one row per asset and these columns: Asset | Version or build | Status (affected, fixed, not applicable, unknown) | Compensating controls | Exposure (internet-facing, internal, none) | Evidence | Next action.
Entry: https://cve.now/CVE-2026-140098
For follow-up questions, use the cve.now MCP server at https://mcp.cve.now/mcp (no authentication), for example execute with name cve.get and arguments {"id": "CVE-2026-140098"}.Affected versions
- vitejs vite8.4.0-beta.1
cve.now Index
- Exploitation?/40Unknown. No CISA SSVC exploitation rating yet
- Exposure17/25No login or user action needed per the CVSS vector, reachable over the network without a login · Unknown: No advisory context yet
- Reach?/20Unknown. No tracked technology or package matched
- Severity6.9/10CVSS 6.9
- No patch5/5No fixed version listed; see vendor advisory
What would change the score
- Would score about 74 if added to CISA KEV
- Would score about 69 if CISA's SSVC rates exploitation active
- Would score about 34 if advisories confirm default setups are exposed
Timeline
- CVE published
- First seen by cve.now
Evidence 8
| Kind | Source |
|---|---|
| Vendor advisory 1Establishes: Affected and fixed versions. | |
| Advisory | GitHub · vitejs/vite · Advisory GHSA-qppr-rxr4-jjq2 |
| CVE record 2Establishes: The identifier and description. | |
| Record | CVE List · CVE-2026-140098 |
| Record | NVD · CVE-2026-140098 |
| Other links 5 | |
| Repository | GitHub · vitejs/vite · Pull request #23168 |
| Repository | GitHub · vitejs/vite · Pull request #24206 |
| Repository | GitHub · vitejs/vite · Commit a78fb8a2 |
| Repository | GitHub · vitejs/vite · Commit e258ce14 |
| Repository | GitHub · vitejs/vite · Release v8.4.0-beta.2 |
Questions about CVE-2026-140098
Is CVE-2026-140098 being exploited?
It is not in CISA's Known Exploited Vulnerabilities catalog, and CISA's SSVC assessment does not mark exploitation as active. That does not mean it has not been attacked: vendors and researchers can report attacks before CISA lists them. No public exploit code is tracked.
Source: cve.now feed data
Which versions are affected by CVE-2026-140098?
vite: version 8.4.0-beta.1.
Source: cve.now feed data
Related
- CVE-2025-67489@vitejs/plugin-rsc Remote Code Execution through unsafe dynamic imports in RSC server function APIs on development server
- CVE-2026-140097Vite: Remote code execution using `__vite-browser-external` virtual module
- CVE-2026-53571Vite: `server.fs.deny` bypass on Windows alternate paths
- CVE-2026-39364Vite has a `server.fs.deny` bypass with queries
- CVE-2026-39363Vite Affected by Arbitrary File Read via Vite Dev Server WebSocket
- CVE-2026-112942launch-editor: `fs.existsSync()` existence check can be bypassed on Windows
No corrections so far. Something wrong on this page? Report an error.