漏洞描述
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.
影响产品
修复建议
建议关注厂商安全公告,及时升级至已修复版本,并结合实际资产暴露情况采取缓解措施。
参考链接
github.comhttps://github.com/vitejs/vite/security/advisories/GHSA-vfpm-58rq-9qcg↗github.comhttps://github.com/vitejs/vite/pull/23655↗github.comhttps://github.com/vitejs/vite/commit/b6c6d2fb3f853aab4092dc25f0d6816a96c23dff↗github.comhttps://github.com/vitejs/vite/commit/ba8b7ab43b4afa5d0292ab4b6e3a7b5033cc9c73↗nvd.nist.govhttps://nvd.nist.gov/vuln/detail/CVE-2026-112947↗