Vite CVE-2026-140097: One Request to an Exposed Dev Server Runs Code. VulnCheck's Canaries Saw It Exploited, Our Edge Caught 44 Tries. Upgrade to 6.4.6, 7.3.8 or 8.x, Then Take It Off the Network

What to do first. Upgrade Vite to a fixed release: 6.4.6, 7.3.8, 8.1.7, 8.2.5 or 8.3.7 (or vite-plus 1.5.1). If you are still on Vite 4 or 5, there is no patch on your line: the advisory's first fixed version for everything from 4.0.0 up is 6.4.6. Then make sure no Vite dev server answers anyone but you. Look for --host on the vite or npm run dev command line, and for server.host in vite.config (true, 0.0.0.0 or a LAN address all count). A dev server is a development tool: it should listen on localhost, and if a teammate needs to reach it, put it behind a VPN or SSH tunnel, never a public port.
The bug only works against a dev server that is reachable over the network. That is also exactly the condition attackers are scanning for.
What is confirmed
Vite published GitHub advisory GHSA-p4f5-76q4-ffq7, "Remote code execution using __vite-browser-external virtual module," on Tuesday, November 10, 2026, rated critical. NVD received it as CVE-2026-140097 on Monday, November 30 (CVSS 4.0 score 9.1 from GitHub as the numbering authority, weakness CWE-116, improper encoding or escaping of output).
What the bug is, per the advisory: Vite's resolver has two virtual modules, __vite-browser-external:<suffix> and __vite-optional-peer-dep:<suffix>. Vite builds them by pasting the module ID, which comes from the request URL, into generated JavaScript without escaping it. Since the suffix can be anything, a single unauthenticated HTTP request can inject code into a module Vite trusts. Two things follow:
- File read. Anything the injected module imports is added to the server.fs allow list. The advisory's proof of concept imports a file outside the project, after which a plain /@fs/ request for that file returns it instead of "403 Restricted."
- Code execution. Vite evaluates parts of module code on the server to process new Worker and import.meta.glob. Injected code that reaches those paths runs in the dev server's Node process. Vite blocks a few globals such as require, but the advisory says plainly that this "is not a security boundary" and names a bypass through globalThis.process.getBuiltinModule.
Affected and fixed, from the advisory's version table:
- vite 4.0.0 through 6.4.5: fixed in 6.4.6
- vite 7.0.0 through 7.3.7: fixed in 7.3.8
- vite 8.0.0 through 8.1.6: fixed in 8.1.7
- vite 8.2.0 through 8.2.4: fixed in 8.2.5
- vite 8.3.0 through 8.3.6: fixed in 8.3.7
- vite-plus 1.5.0 and earlier: fixed in 1.5.1
On Vite 8 the vulnerable code lives in the Rolldown binary. Vite 8.3.7 and 8.2.5 depend on the fix in Rolldown 1.2.17, and 8.1.7 on Rolldown 1.1.7. Upgrading Vite pulls the right one in; a lockfile that pins an older Rolldown will not.
Exploitation evidence: VulnCheck added CVE-2026-140097 to its KEV list on Tuesday, December 1, with the flag that its own canary (honeypot) network observed exploitation. That evidence is VulnCheck's. We could read the KEV entry; the canary detail behind it (dates, counts, sources) is in a VulnCheck index our subscription does not cover, so we do not have their first-seen date or volume.
What our edge saw
Our edge records only the request path, cut at 300 characters, and never the request body or query string. Within that, from September 1 through today, our edge-shield blocks (754,933 records) and edge canaries (180,485 records) hold 44 requests from 20 addresses carrying the __vite-browser-external injection the advisory describes: 40 blocked, 4 answered by canaries, none on our own blog pages. Our origin honeypot (2,908 records) saw none, which is what a working edge looks like. No request used the second module, __vite-optional-peer-dep.
- First: Thursday, November 19, 21:11 UTC (2 canary hits from a Hetzner IPv6 address). Then bursts on November 20 (25 requests), November 21 (11) and November 26 (6).
- Who: rented servers, mostly DigitalOcean (9 requests), Amazon (6), Hetzner (4 blocks, plus the canary pair) and smaller hosting providers in Brazil, the Netherlands, Spain, India and Germany. That is a scanner population, not a single actor we can name.
- What: 36 of the 44 inject an import.meta.glob call whose only job is to make the server compute a marker string ("V0_HIT"). That is a vulnerability check: if the reply contains the marker, the server ran the attacker's code. The other 8 inject longer code that starts by replacing the writeHead and end functions of Node's HTTP response, the opening of an in-memory hook on everything the dev server sends back. Our record stops at 300 characters, so we cannot say what the rest of that code does.
- Where: besides the root path, the scanners tried the same request under /_nuxt/, /app/, /studio/, /console/ and /dashboard/, looking for Vite dev servers mounted under other frameworks and admin paths.
Our first record is nine days after the advisory went public. That is a sighting, not a lead. We run no Vite dev server, so these requests tell us what is being tried, not whether it works.
The 20 addresses are in our feed. Six were already there from earlier activity. We added the other 14 today as our own observation, at confidence 85, and confirmed each one by reading it back. These are scanner addresses on rented servers, so treat them as noise to drop at the edge, not as one attacker. Block them with our free feed (docs at docs.dugganusa.com).
Added today (first seen at our edge, UTC): 93.93.112[.]121, 163.176.45[.]217, 137.131.132[.]221, 151.245.136[.]190, 78.17.57[.]95, 216.144.234[.]205 (all November 20, 04:05 to 04:08); 152.53.208[.]182, 24.199.111[.]189 (November 20, 08:51); 93.127.206[.]149, 88.99.191[.]225, 165.22.51[.]57, 23.95.67[.]247, 178.105.245[.]30 (November 21, 10:50); 107.23.58[.]131 (November 26, 6 requests).
Already held: 129.212.179[.]197, 130.132.173[.]172, 157.245.86[.]121, 162.141.109[.]119, 164.52.192[.]219, 2a01:4f8:c015:474c::1.
What is not known
- How many internet-facing Vite dev servers exist, or how many are unpatched. We did not count them.
- Whether any of the attempts we saw succeeded anywhere.
- CISA has not added CVE-2026-140097 to its KEV catalog (checked against catalog version 2026.11.30). CISA's own enrichment on the NVD record, as of December 1, reads exploitation "poc," automatable "yes," technical impact "total." The exploitation evidence available today is VulnCheck's canaries and the requests on our edge.
- No primary we read published attacker IP addresses, so this post lists none.
The two older Vite bugs on the same list
VulnCheck also added two 2025 Vite bugs to its KEV list on December 1, without a canary flag. It cites an alert from Coalition dated the same day. Both are arbitrary file reads past the server.fs.deny filter, both only matter when the dev server is network-exposed, and both are fixed by anything at or above 6.4.6:
- CVE-2025-31486: appending ?.svg with ?.wasm?init, or sending sec-fetch-dest: script, returned files smaller than 4 KB on Vite 6. Fixed in 4.5.12, 5.4.17, 6.0.14, 6.1.4 and 6.2.5.
- CVE-2025-32395: a # in the request target bypassed the deny check on Node and Bun. Fixed in 4.5.13, 5.4.18, 6.0.15, 6.1.5 and 6.2.6.
Neither is in CISA's KEV catalog. A third, CVE-2025-31125 (?inline&import and ?raw?import), has been in CISA's KEV since January 22, 2026. Our edge saw 7 blocked requests for /@fs/ paths such as /@fs/.env since November 1. That is generic recon shared by several Vite file-read bugs; we do not count it as a sighting of any one of them, and because our edge drops query strings, it cannot tell us whether those older ?param tricks were tried at all.
Am I affected?
You need two things to be true at once: a vulnerable Vite version, and a dev server someone else can reach.
- Version. In the project folder, run npm ls vite (or pnpm why vite, or yarn why vite). It lists every copy, including the one your framework pulls in: SvelteKit, Nuxt, Astro, Remix, SolidStart, Qwik, Storybook and Vitest projects all run on Vite. Without installing anything, open package-lock.json and find the entry "node_modules/vite"; its "version" is what you run. Anything from 4.0.0 up that is below the fixed version for its line is affected. vite-plus users: npm ls vite-plus, below 1.5.1 is affected.
- Exposure. Check package.json scripts and any Dockerfile, compose file, devcontainer or CI job for vite --host, vite dev --host 0.0.0.0, or a dev command that passes --host through. Check vite.config.js or vite.config.ts for server.host set to true or 0.0.0.0. A dev server inside a container usually has to bind 0.0.0.0, so the published port is what matters: a port mapped as 5173:5173 on a cloud VM listens on every interface. Mapping it to 127.0.0.1:5173:5173 does not.
- Logs. If a dev server was reachable, look in its output or in your reverse proxy logs for requests containing __vite-browser-external: or __vite-optional-peer-dep: followed by punctuation such as a backtick or closing parenthesis. Normal app traffic does not send those. If you find them on an unpatched server, treat the machine as compromised: rotate every secret the dev server process could read (.env files, cloud credentials, tokens in the shell environment) and rebuild it.
Production builds (the static files from vite build) are not the dev server and are not what this advisory describes. vite preview is a separate local preview server; the advisory does not name it.
Sources
- Vite security advisory GHSA-p4f5-76q4-ffq7, github.com/vitejs/vite/security/advisories/GHSA-p4f5-76q4-ffq7, published November 10, 2026
- NVD, CVE-2026-140097, CVE-2025-31486 and CVE-2025-32395 records (services.nvd.nist.gov)
- VulnCheck KEV entries for CVE-2026-140097 (canary-observed), CVE-2025-31486 and CVE-2025-32395, added December 1, 2026. Exploitation evidence credit: VulnCheck.
- CISA Known Exploited Vulnerabilities catalog, version 2026.11.30
- DugganUSA edge-shield blocks and edge canaries, September 1 to December 2, 2026
Block every scanner address above with our free feed.
Read next: the last time Vite dev servers were the target, F5 Labs counted cloud keys read straight off port 5173: Five Afternoon Stories, One Shape
How do AI models see YOUR brand?
AIPM has audited 250+ domains. 15 seconds. Free while still in beta.
Audit your site now → aipmsec.com
Was this useful? Thirty seconds, no cookies, no tracking, no third parties, your address hashed and never stored. The question lives here: https://analytics.dugganusa.com/nps.html#post=vite-cve-2026-140097-dev-server-rce