Vite Dev Server - server.fs Bypass via vite-wasm-instance
Vite 8.2.0 through 8.2.3 and 8.3.0 through 8.3.2 contain a file disclosure vulnerability in the dev server. Requests carrying the ?vite-wasm-instance query are loaded by the internal vite:wasm-helper plugin, which strips the query and reads the file from disk without applying the server.fs allow and deny checks. The file is then compiled as WebAssembly, and the resulting error returned to the client includes the first 4 bytes of the file. Only dev servers exposed to the network with --host or server.host and running on Node.js or Deno are affected.