TechWeb platformNotable

Vite 8.4 adds an opt-in allow-list check for files the dev server will serve

The Vite team released Vite 8.4 today. Besides a stricter server.fs mode it plans to make the default in the next major, the release retries CSS for failed dynamic imports, detects duplicate dev servers and supports Wasm source phase imports.

Promptea Editorial2 min read

The Vite team published Vite 8.4 on November 26, 2026. The npm registry lists vite 8.4.0 as the latest version, published at 10:59 UTC the same day. The headline change is security-related: a new way to restrict which files the development server is allowed to serve.

A stricter file serve check, opt-in for now

Vite's server.fs check exists to stop the dev server from handing out files if it is reachable by an attacker. The team writes that it was introduced in Vite 2.7 and has always worked as a block-list, which meant patching bypasses that exploit quirks of the file system and HTTP parsing. "Given that the number of attacks are increasing," the announcement says, Vite 8.4 introduces a stricter allow-list based check.

Two settings make it work together. server.fs.strict: 'extended' applies the checks to modules loaded by plugins too, and Vite now registers referenced modules in the allow list when they are referenced by url() in CSS, not only by import. Combining server.fs.strict: 'extended' with server.fs.allow: [] turns on the allow-list approach, which only serves files referenced from the entry point, including transitive references. Plugins that generate modules referencing assets without import can call this.environment.addSafeModule so users do not have to add them to server.fs.allow by hand.

The team says it intends to switch to this approach by default in the next major version, so plugin authors have a reason to test it now.

Other changes in 8.4

  • Refetching dynamic imports: the HTML specification was updated in July to let browsers retry failed module fetches for dynamic imports, implemented by Chrome 156+, Firefox 155+ and Safari Technology Preview 252. Vite's preload helper now re-fetches the CSS of a dynamic chunk when the import is re-executed.
  • Subpath imports in CSS url(): Vite tries to resolve them as subpath imports and falls back to the raw hash URL. The team now recommends subpath imports over resolve.alias or tsconfig paths.
  • Duplicate CLI process detection: starting a second dev server for the same project exits with an error that names the running process; --bypass-lock skips the check.
  • Wasm source phase imports: import source mod from './mod.wasm' returns a WebAssembly.Module. The team says TypeScript 7.1, currently in beta, will support the syntax, and that once it is stable it will recommend this over the Vite-specific .wasm?init feature.
  • A highly experimental bundled dev mode for SSR, described as the foundation for bundled dev mode support in meta-frameworks.

What is not settled

The allow-list check is opt-in in 8.4, and the announcement does not say when the next major will ship or how much existing plugin code will need addSafeModule calls. Bundled dev mode for SSR is labeled highly experimental. Both sources for this article come from the project itself: the Vite blog post and the npm registry entry for vite 8.4.0. The npm entry lists Node.js ^20.19.0 || >=22.12.0 as the supported engines.

Why this matters

  • Dev servers are increasingly reachable from places their authors did not plan for, including containers, preview environments and machines where coding agents run them unattended; an allow-list limits what such a server can leak.
  • The team plans to make the allow-list the default in the next major, so plugins that reference assets without import should be tested with server.fs.allow: [] and, if needed, call addSafeModule.
  • Duplicate process detection removes a common failure when several tools or agents start the same project's dev server at once.

Key takeaways

  • Vite 8.4 was released on November 26, 2026; vite 8.4.0 is now the latest tag on npm.
  • server.fs.strict: 'extended' plus server.fs.allow: [] serves only files referenced from the entry point.
  • The allow-list approach is opt-in now and planned as the default in the next major.
  • Also new: CSS refetch for retried dynamic imports, subpath imports in CSS url(), duplicate dev server detection and Wasm source phase imports.

Sources

  1. VitePrimary
    Vite 8.4 is out!
    vite.dev
  2. npmPrimary
    vite 8.4.0 (npm registry metadata)
    registry.npmjs.org

How we choose and verify sources

Tags:
  • vite
  • build-tools
  • security
  • javascript
  • webassembly
Companies:
  • Vite
  • VoidZero
Vite 8.4 adds an allow-list check for dev server files · Promptea