Vite: First 4 bytes of files outside of `server.fs` setting is exposed by `?vite-wasm-instance`
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| npmvite |
< 8.2.4→ 8.2.4 |
8.2.4 |
| npmvite-plus |
< 1.1.0→ 1.1.0 |
1.1.0 |
| vitejsvite | — | Not listed |
| vitejsvite-plus | — | Not listed |
Fix status by distribution
Records published by each distribution for this CVE. Fixed versions differ by release; check each link.
- Ubuntu UBUNTU-CVE-2026-112947 vite No fixed version in this record
Original description The description as published by the source.
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.
Source: NIST National Vulnerability Database NVD GitHub Advisory
References
- advisory github.com
- advisory github.com
- advisory nvd.nist.gov
- package github.com
- patch github.com
- patch github.com
- patch github.com
- REDHAT Red Hat
- web github.com