Impresiv, AutomationImpresiv
DocumentationCommunityBlogPricingMCP
Sign in
    Impresiv, AutomationImpresiv

    Less repetitive. More Impresiv.

    Get the mobile app

    Download on theApp StoreGet it onGoogle Play

    Product

    • Documentation
    • Pricing
    • MCP
    • Blog
    • Community

    Compare

    • n8n vs Impresiv
    • Zapier vs Impresiv
    • Make vs Impresiv

    Contact

    • support@impresivai.com
    • +6285136538145
    • Schedule a call

    Legal

    • Privacy
    • Terms
    • Refund

    © 2026 Impresiv. All rights reserved.

    Indonesia

    Impresiv
    Blog
    Developer News

    Developer News

    Vite 8.4 can stop your dev server from handing out files nobody imported, but the safe mode is still off by default

    Vite 8.4 adds an opt-in allow-list for its dev server's file serving, a response to rising attacks. By default, any non-denied file under the project root can still be fetched by path. An early bug report shows the new mode has rough edges.

    IImpresiv Team
    November 27, 2026 4 min read Updated November 29, 2026
    Close-up of colorful HTML and JavaScript code on a dark screen. Illustrative photo by Martin Vorel, CC BY-SA 4.0, via Wikimedia Commons

    Your dev server may be handing out files your app never uses. Vite 8.4, released on November 26, adds a stricter way to stop that. The catch is that you have to turn it on.

    What changed

    Vite has a file-serve check, server.fs, that stops a dev server from serving files when a bad actor can reach it. It first appeared in Vite 2.7 and relied on a block-list: you and Vite listed the sensitive files, per the Vite 8.4 announcement. The Vite team says it kept having to patch bypasses that abuse quirks of the file system and HTTP parsing, and that attacks are increasing, per the Vite 8.4 announcement. So Vite 8.4 adds an allow-list check. Setting server.fs.strict: 'extended' applies the check to modules loaded by plugins too. Vite also now tracks referenced modules not just from import but from other places such as CSS url(), per the Vite 8.4 announcement. Combine it with server.fs.allow: [] and only files referenced from the entry point, including indirect references, can be served, per the Vite 8.4 announcement. The team says it intends to make this the default in the next major version.

    What the default still serves

    vite
    vite-8-4
    dev-server
    web-security
    javascript
    frontend-tooling
    wasm
    Share this article

    Stay ahead

    Ship less glue code with Impresiv.

    Wire APIs, webhooks and AI agents together visually — and skip the boilerplate.

    Start building free See pricing

    On this page

    14%
    • What changed
    • What the default still serves
    • Why it matters more now
    • Rough edges already
    • Other features in 8.4
    • What to watch next
    • Why it matters

    Developer Rosvetic tested this on Vite 8.4.0 and wrote it up in Tokenise. The /@fs/ route serves files by absolute path. With the default settings, anything under the project root can be fetched, imported or not, unless it is on a short deny list: .env files, key and certificate extensions, .npmrc, .yarnrc.yml and anything under .git, per Tokenise. In the test, an unimported internal/draft.md came back with a 200, while .env.local and a file outside the root were refused with 403. The article warns the same applies to a credentials.json saved in the repo or a database dump. That is one developer's test on one setup, but it matches how the deny list is described.

    Why it matters more now

    Dev servers used to be reachable only from your own browser. Tokenise points out they are now pointed at a phone on the same Wi-Fi, a container with a published port, or a cloud agent that shows you a preview. In each case, one flag can expose the server to a network.

    Rough edges already

    The new mode is not bug-free. GitHub issue #24240, opened on November 27 and still open when we checked, reports that with strict: 'extended' an extensionless URL like /home or /tmp returns 403 when a folder with that name exists at the filesystem root. Browsers send a header that avoids the problem, so they are unaffected. Scripted checks and other non-browser clients get 403 on such SPA routes. Another contributor said they reproduced it on Windows and offered a fix. Expect patches.

    Other features in 8.4

    The release also improves dynamic imports. Browsers following an updated HTML spec can retry failed module loads, in Chrome 156+, Firefox 155+ and Safari Technology Preview 252, and Vite now refetches the CSS for a chunk when the import runs again, per the Vite 8.4 announcement. CSS url() now supports subpath imports. Vite detects duplicate dev servers for the same project and exits with a message unless you pass --bypass-lock. It supports Wasm source phase imports, which TypeScript 7.1 (currently in beta) is set to support. A bundled dev mode for server-side rendering is available as a highly experimental foundation, per the Vite 8.4 announcement.

    What to watch next

    Watch how fast the extended-mode bugs get fixed. Watch whether the next major version really flips the default. If you run a dev server on a shared network or in a container, test the new settings on a staging copy first.

    Why it matters

    Many developers treat a dev server as private by default. In 2026, with phones, containers and AI agents all asking for previews, that is a risky habit. Vite 8.4 gives a better lock. It is still up to you to turn it.

    Cover image: Programming code by Martin Vorel, CC BY-SA 4.0, via Wikimedia Commons. Illustrative photo of code on a screen, not Vite's own code.