Skip to content
Medium 6.3

Vite: First 4 bytes of files outside of `server.fs` setting is exposed by `?vite-wasm-instance`

CVE-2026-112947 First seen on SecPulse

Affected packages

PackageAffected → Fixed
npmvite
< 8.2.4→ 8.2.4
npmvite-plus
< 1.1.0→ 1.1.0
vitejsvite —
vitejsvite-plus —

Fix status by distribution

Records published by each distribution for this CVE. Fixed versions differ by release; check each link.

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

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details