CVE-2026-140097: Vite: Remote code execution using `__vite-browser-external` virtual module
Vulnerability summary
CVE-2026-140097 is a critical (CVSS 9.1) Improper Encoding or Escaping of Output vulnerability in vitejs vite. EPSS estimates a 1.83% chance of exploitation in the next 30 days, higher than 79.6% of scored vulnerabilities.
Severe, CVSS 9.1 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 2% (FIRST, 04-12-2026)
Source freshness unavailable
How is this decided?Timeline
- 30-11-2026PublishedVulnerability first disclosed.
- 01-12-2026Last modifiedVulnerability information updated.
Description
Vite is a frontend tooling framework for JavaScript. From 4.0.0 until 6.4.6, 7.3.8, 8.1.7, 8.2.5, and 8.3.7 in Vite, and prior to 1.5.1 in vite-plus, a network-exposed development server embeds request-derived module identifiers from the __vite-browser-external:<suffix> and __vite-optional-peer-dep:<suffix> virtual modules into trusted generated JavaScript without escaping. A remote unauthenticated attacker can inject an import that adds an outside file to the server.fs module allow list and can reach server-side evaluation through new Worker or import.meta.glob processing, allowing disclosure of local files and arbitrary code execution in the development-server process. This issue is fixed in Vite 6.4.6, 7.3.8, 8.1.7, 8.2.5, and 8.3.7, and in vite-plus 1.5.1.
CVSS metrics
2 scores · 2 sources · 1 version- NVDNIST9.1CriticalCVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
EPSS trend
Probability
1.83%
Chance of exploitation in the next 30 days
Percentile
80%
Versus all other CVEs
30-day change
Change unavailable
Change unavailable
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
1 vendor · 2 products
References
16 links- github.com/vitejs/vite/security/advisories/GHSA-p4f5-76q4-ffq7X Refsource CONFIRM
- github.com/vitejs/vite/pull/24043X Refsource MISC
- github.com/vitejs/vite/pull/24044X Refsource MISC
- github.com/vitejs/vite/blob/v6.4.6/packages/vite/CHANGELOG.mdX Refsource MISC
- github.com/vitejs/vite/blob/v7.3.8/packages/vite/CHANGELOG.mdX Refsource MISC
- github.com/vitejs/vite/blob/v8.1.7/packages/vite/CHANGELOG.mdX Refsource MISC
Show all 16 references
- github.com/vitejs/vite/blob/v8.2.5/packages/vite/CHANGELOG.mdX Refsource MISC
- github.com/vitejs/vite/releases/tag/v6.4.6X Refsource MISC
- github.com/vitejs/vite/releases/tag/v7.3.8X Refsource MISC
- github.com/vitejs/vite/releases/tag/v8.1.7X Refsource MISC
- github.com/vitejs/vite/releases/tag/v8.2.5X Refsource MISC
- github.com/vitejs/vite/releases/tag/v8.3.7X Refsource MISC