Vite 8.4 ReleasedAllow-list File Serving Security, Dynamic Import Retries, and CSS url() Subpath Imports
Summary of Vite 8.4 (Nov 26, 2026): opt-in allow-list file serving with server.fs.strict: 'extended', dynamic import CSS refetching, CSS url() subpath imports, duplicate CLI detection, and Wasm source phase imports.

Q. What is the biggest security change for the dev server in Vite 8.4? You can now opt into allow-list based file serve checks instead of block-lists by combining
server.fs.strict: 'extended'withserver.fs.allow: []. Only files transitively referenced from entrypoints viaimportor CSSurl()are allowed, and the Vite team plans to make this the default in the next major release.
⚠️ Accuracy guardrail: This post is based on the official Vite 8.4 announcement (Nov 26, 2026) verified on November 28, 2026. Detailed bug fixes are listed in the GitHub Changelog, and exact timelines for the next major release default switch and stabilization of the experimental SSR bundled dev mode have not yet been announced.
30-second summary
- Allow-list file serve check (opt-in): Combining
server.fs.strict: 'extended'withserver.fs.allow: []restricts dev server file serving to files transitively referenced from entrypoints. - Refetching dynamic imports: When a failed
import()is retried in supported browsers (Chrome 156+, Firefox 155+, Safari TP 252), Vite's preload helper now refetches the CSS for the dynamic chunk as well. - Subpath imports in CSS
url(): Vite now resolves#subpathimports in CSSurl()first and falls back to raw hash URLs if resolution fails. - Duplicate CLI detection & Wasm source phase import: Running a second dev server for the same project exits with the existing PID, and
import source mod from './mod.wasm'is now supported ahead of TypeScript 7.1.

Allow-list based file serve check: moving beyond block-lists
Vite now lets you lock down dev server file access to only what your app actually references.
Since Vite 2.7, the server.fs check relied on a block-list approach where sensitive files had to be listed explicitly. Because Vite allows implicit entrypoints, the team repeatedly had to patch bypasses exploiting file-system and HTTP-parsing edge cases.
Vite 8.4 introduces a stricter opt-in allow-list model to close those gaps.
| Aspect | Previous Block-list (Vite 2.7+) | Vite 8.4 Allow-list (Opt-in) |
|---|---|---|
| Key config | Default (server.fs.deny, etc.) |
server.fs.strict: 'extended' + server.fs.allow: [] |
| Allowed files | Project files not on the deny list | Only files referenced from entrypoints via import, CSS url(), etc. |
| Plugin modules | Limited control over plugin-loaded modules | 'extended' applies the same check to plugin-loaded modules |
| Non-import assets | Requires manual server.fs.allow entries |
Plugins can call this.environment.addSafeModule |
If a plugin generates a module referencing an asset without import, it can call this.environment.addSafeModule so users do not have to add paths to server.fs.allow. The Vite team intends to make this allow-list check the default in the next major release.

Refetching dynamic imports and CSS url() subpath imports
Transient network failures recover cleanly with CSS intact, and CSS paths align with standard subpath imports.
Following a July update to the HTML specification, browsers can now retry failed module fetches for dynamic imports—implemented in Chrome 156+, Firefox 155+, and Safari Technology Preview 252. Vite 8.4 updates its preload helper so that when a dynamic import succeeds on a retry, the associated dynamic chunk CSS is also refetched.
export const onClick = async () => {
// Before: this import threw an error if the fetch failed even on the second click
// Vite 8.4 + supported browsers: succeeds on retry with both JS and CSS loaded
const SuccessComponent = await import('./Success.ts')
render(SuccessComponent)
}
For CSS url(), Vite now supports Node.js and TypeScript subpath imports (#...). Previously omitted due to conflicts with hash URLs, Vite 8.4 attempts subpath resolution first and falls back to the raw hash URL if it fails. The Vite team now recommends subpath imports over resolve.alias or tsconfig paths.
Duplicate CLI process detection and Wasm source phase imports
Accidentally spawning a second dev server is caught immediately, and Wasm plus SSR dev pipelines move closer to standards.
If you start a Vite dev server for the same project with similar options while one is already running, Vite exits and prints the active process URL and PID:
Found another Vite dev process for this project at http://localhost:5173/ (PID 12345).
Pass --bypass-lock to bypass this check.
You can pass --bypass-lock whenever you intentionally need to skip this check.
For WebAssembly, Vite 8.4 adds support for standard source phase imports:
import source mod from './mod.wasm'
const instance = await WebAssembly.instantiate(mod, {
'./imports.js': { someFunc: () => {} },
})
This aligns with TypeScript 7.1 (currently in beta); once TypeScript 7.1 reaches stable, the Vite team recommends it over the Vite-specific .wasm?init suffix. This release also ships highly experimental support for a bundled dev mode for SSR as a foundation for meta-frameworks.

Toris's take
Two changes are worth testing in your repositories right away: duplicate CLI detection and the opt-in allow-list check.
- Test the allow-list mode on a branch now: Because
server.fs.strict: 'extended'combined withserver.fs.allow: []is slated to become the next major default, testing it today helps catch any third-party plugin or asset path issues early. - Prefer subpath imports in new packages: Since Node.js and TypeScript natively understand
package.jsonimports, using#subpathimports instead ofresolve.aliasreduces bundler-specific config in monorepos and UI libraries. - Related developer tooling updates: If you are also refining your team's coding agent and workflow setup, see our recent notes on the Cursor official plugin spec and Vercel Workflow SDK 5.8.
Sources
Advertisement