CVE-2026-112947
published medium CVSS 4.0 · 6.3Vite: First 4 bytes of files outside of `server.fs` setting is exposed by `?vite-wasm-instance`
Package status and fixes
Description
Vite is a frontend tooling framework for JavaScript. From 8.2.0 until 8.2.4 and 8.3.3, the first 4 bytes of files outside of server.fs setting can be returned to the browser by a request containing ?vite-wasm-instance. Requests containing the ?vite-wasm-instance query are handled by the internal Wasm plugin's load hook. The hook removes the query and reads the resulting path directly from disk, but the server.fs checks were not applied. After reading the file, Vite attempts to parse it as WebAssembly. When that parse fails, Node and deno throws an error that contains the first 4 bytes of the file. This vulnerability is fixed in 8.2.4 and 8.3.3.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 6.3 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| vitejs | vite | >= 8.3.0, < 8.3.3 (affected)>= 8.2.0, < 8.2.4 (affected) | GitHub_M · cna |
| vitejs | vite-plus | >= 0.2.8, < 1.1.0 (affected) | GitHub_M · cna |
Weaknesses
3- CWE-22 CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
- CWE-200 CWE-200: Exposure of Sensitive Information to an Unauthorized Actor
- CWE-209 CWE-209: Generation of Error Message Containing Sensitive Information
References
4Provider assertions
2GitHub_M · cna
Vite: First 4 bytes of files outside of `server.fs` setting is exposed by `?vite-wasm-instance`
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 38e8f1209d9dc0a2c73daef00a2f13cd27f563cf9946d296eb25350a1733e8ae
- Ingested
- 21 Oct 2026, 15:58:42 UTC
- Source record
- Official CVE record