Vite Remote Code Execution Vite patched a remote code execution vulnerability in versions 8.3.7, 8.2.5 and 8.1.7, where unescaped module IDs in the `__vite-browser-external` and `__vite-optional-peer-dep` virtual modules let an attacker inject code into the dev server. The flaw only affects apps that expose the Vite dev server to the network via `--host` or the `server.host` config option, and the fix for the v8 code lives in Rolldown 1.2.17 (for Vite 8.3.7 and 8.2.5) and Rolldown 1.1.7 (for Vite 8.1.7). A proof of concept showed an injected `import '/@fs/tmp/decoy-secret.txt'` pulled a file outside the serving allow list into the module graph, after which a plain `GET /@fs/tmp/decoy-secret.txt` returned its contents. Repository navigation Remote code execution using vite-browser-external virtual module This report was submitted with AI assistance Description Summary By sending an HTTP request to the dev server, a arbitrary code execution was possible. Impact Only apps that match the following condition are affected: - explicitly exposes the Vite dev server to the network using --host or server.host config option https://vitejs.dev/config/server-options.html server-host Details Vite's resolver plugin has vite-browser-external: