Vite 8.4 is out, and its most important piece is a security feature: on request, the dev server now checks an allow list of files it may serve, instead of maintaining a block list of sensitive files. According to the official announcement of November 26, 2026, the team intends to make this mode the default in the next major release. Also new are retries for failed dynamic imports, subpath imports in CSS url(), detection of duplicate dev processes and support for Wasm source-phase imports.
Vite 8.4: allow list instead of block list for the dev server
The server.fs check is meant to stop files from being served if the dev server is reachable by an attacker. It has existed since Vite 2.7 and has been improved over the years, but it used a block list: you and Vite had to name sensitive files. The team writes that, because of quirks in file systems and HTTP parsing, this approach kept allowing bypasses that had to be fixed one by one. As the number of attacks is increasing, Vite 8.4 introduces a stricter check based on an allow list.
The new option server.fs.strict: 'extended' applies the check to modules loaded by plugins as well. In addition, Vite now registers referenced modules in the allow list not only via import but also through other references such as url() in CSS. Combining server.fs.strict: 'extended' with server.fs.allow: [] enables the allow-list approach: only files referenced from the entry point, including transitive references, are then served. Plugins that generate a module referencing an asset other than through import can call this.environment.addSafeModule so users do not have to add the file to server.fs.allow manually.
In practice: if you only run the dev server locally, you are better protected anyway. If you expose it on a network, in containers or through tunnels, try the new setting in a test environment before it becomes mandatory later. Whether your project loads files that are not referenced directly (such as configuration or data fetched via a runtime path) shows up fastest as failed requests on the dev server.
Dynamic imports: retry after a failed load
The HTML specification was updated in July so that browsers may retry failed module fetches for dynamic imports. According to Vite, Chrome 156 and later, Firefox 155 and later, and Safari Technology Preview 252 implement this. Vite 8.4 improves the preload helper accordingly so that the CSS of a dynamic chunk is re-fetched when the import runs again. The announcement’s example is a click handler: if the fetch failed on the first click, the second click used to throw as well; now the import succeeds as soon as the fetch works the second time, provided the browser supports it.
Other changes
- Subpath imports in CSS
url(): Vite first tries to resolve the path as a subpath import and falls back to the raw hash URL if that fails. The team now recommends subpath imports overresolve.aliasor tsconfig paths because Node.js and TypeScript support them. - Duplicate CLI process detection: if a dev server with similar options is already running for the same project, Vite exits with an error message naming the running process.
--bypass-lockskips the check. - Wasm source-phase import:
import source mod from './mod.wasm'gives you aWebAssembly.Moduledirectly. According to Vite, the syntax is to be supported by TypeScript 7.1, currently in beta; afterwards the team recommends it over the Vite-specific.wasm?init. - Bundled dev mode for SSR: labeled “highly experimental”; it is the foundation for a bundled dev mode in meta-frameworks.
Assessment and upgrade tips
Vite 8.4 is a minor release, and the riskier changes are opt-in. For most projects the normal update plus a test run is enough. If you use Vite alongside other tools, see our report on Vite+ 1.0 and the unified JavaScript toolchain. On the browser side, current standards are worth a look too: our post on Firefox 161 covers more new web features developers can test now.
Recommendation: read the release notes, try server.fs.strict: 'extended' with an empty allow list on a separate branch and watch the dev server’s error messages. If you maintain plugins, check whether generated modules reference assets outside import and use addSafeModule where needed. The release changelog contains further fixes that we do not list individually. The announcement names no specific CVE number for the file serving; it justifies the change with the growing number of attacks on dev servers.



