CVE-2026-140097 is a remote code execution flaw in Vite development servers explicitly exposed to a network. Vite says a request-derived identifier entered trusted generated JavaScript without escaping. The vendor rates the flaw Critical at 9.1 under CVSS 4.0.The condition matters: Vite names the --host flag or server.host configuration as ways to expose the server. A project containing an affected package is not necessarily a reachable target. The flaw concerns the running development server, so identify those processes before prioritizing the update.
What it allows
How Does CVE-2026-140097 Work?
Vite says its resolver generated two virtual modules using a request-derived module identifier without escaping it. The development server then treated that generated module code as trusted. A crafted network request could change what the server imports or evaluates, without requiring an account or user action.
The advisory describes two consequences. A manipulated module reference can bring a file outside the normal serving allow list into the module graph. A separate path through worker or glob processing can evaluate injected code in the server process. These are possible impacts, not evidence that a specific deployment was compromised.
Vite includes a public proof of concept in its advisory. That demonstrates a reproducible path but does not establish field exploitation. Brandefense Blackhole counted 2 dark-chat posts matching this CVE from 2 September through 1 December 2026. The unit is posts, and those mentions do not verify an incident or active exploitation.
The vulnerability intelligence platform is relevant when comparing this advisory with an asset inventory. Our Vite development server response article covers the operational sequence. The vulnerability management overview explains how to record remediation and verification.
Who is affected
Version Check
| Release Line | Affected Range | Fixed In |
|---|---|---|
| 8.2.x | 8.2.0 to before 8.2.5 | 8.2.5 |
| Release Line | Affected Range | Fixed In |
|---|---|---|
| 8.3.x | 8.3.0 to before 8.3.7 | 8.3.7 |
For distribution packages and custom builds, check the supplier’s advisory.
The automatic check covers only Vite 8.2 and 8.3. Compare other affected Vite branches and vite-plus with the advisory and verify the installed version in the running environment.
Which Versions Does CVE-2026-140097 Affect?
Vite lists five affected ranges: 4.0.0 through 6.4.5, 7.0.0 through 7.3.7, 8.0.0 through 8.1.6, 8.2.0 through 8.2.4, and 8.3.0 through 8.3.6. Their respective fixed releases are 6.4.6, 7.3.8, 8.1.7, 8.2.5 and 8.3.7. The advisory also lists vite-plus 1.5.0 and earlier, fixed in 1.5.1.
The affected package version alone does not establish exposure. The vendor limits impact to applications explicitly exposing the development server to the network. Check startup arguments, configuration and the final running environment. For Vite 8, the vendor says its fix relies on corrected Rolldown versions within the patched Vite releases.
Timeline
- 2026-11-10
Vite published advisory GHSA-p4f5-76q4-ffq7 with a proof of concept and fixed versions.
- 2026-11-30
The CVE Program published CVE-2026-140097 with GitHub as CNA.
- 2026-11-30
CISA KEV catalog version 2026.11.30 did not list this CVE.
What to do
-
Find network-exposed development servers
Inventory running Vite development servers, including remote workspaces and CI environments. Check whether --host or server.host exposes each listener to a network.
-
Update the affected branch
Move Vite to at least 6.4.6, 7.3.8, 8.1.7, 8.2.5 or 8.3.7 for its branch. Move vite-plus to at least 1.5.1.
-
Verify the running dependency
Reinstall dependencies and rebuild any affected image. Check the resolved Vite or vite-plus version inside the final running environment, then confirm the listener configuration.
-
Assess reachable installations
For a server that was exposed before patching, review relevant access logs and the development process privileges. Assess secrets and files accessible to that process; this is defensive advice inferred from the vendor impact.
What Brandefense can do
- Watch your stack for exploited flaws
Name the vendors and products you run, and Brandefense alerts you when a CVE in them is exploited.
- See CVE-2026-140097 in Brandefense Atlas
The Atlas record of CVE-2026-140097: severity, exploitation status and the sources behind it.
- Vulnerability intelligence platform
Brandefense Vulnerability Intelligence follows which vulnerabilities attackers are using, so your team can patch what is under attack first.
Frequently Asked Questions
Why can a module identifier lead to server-side code execution?
Vite says request-derived identifiers entered trusted generated JavaScript without escaping. Worker or glob processing could then evaluate the injected code in the development-server process.
Which package should be checked when vite-plus is installed?
Check vite-plus as well as Vite in the running environment. The vendor lists vite-plus 1.5.0 and earlier as affected and 1.5.1 as fixed.
Is CVE-2026-140097 listed in CISA KEV?
The CISA KEV catalog version 2026.11.30 did not list it. The Vite advisory publishes a proof of concept, so assess reachable servers and apply the vendor fixes.
Sources
- Remote code execution using virtual moduleVite / GitHub Security Advisory
- CVE-2026-140097 RecordCVE Program / GitHub CNA
- Known Exploited Vulnerabilities CatalogCISA