Home / vitejs / vite / CVE-2026-140097
CVE-2026-140097: is it exploited, and which versions of vitejs vite are affected and fixed?
CVE-2026-140097 is an improper output encoding vulnerability in vitejs vite. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 22:39 UTC). Affected: vite >= 4.0.0, < 6.4.6, vite >= 7.0.0, < 7.3.8, vite >= 8.0.0, < 8.1.7 and 3 more (CVE record by GitHub_M). No fixed version is listed in the sources yet; check the vendor advisory. Severity: Critical (9.1, CVSS 4.0, from GitHub_M).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 22:39 UTC, CVE record December 1, 2026, 15:10 UTC and NVD December 1, 2026, 16:09 UTC.
What is CVE-2026-140097?
Vite: Remote code execution using `__vite-browser-external` virtual module
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.
From the CVE record by GitHub_M, last updated December 1, 2026, 14:55 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| vitejs | vite | >= 4.0.0, < 6.4.6 >= 7.0.0, < 7.3.8 >= 8.0.0, < 8.1.7 >= 8.2.0, < 8.2.5 >= 8.3.0, < 8.3.7 | |
| vitejs | vite-plus | < 1.5.1 |
As the CVE record by GitHub_M states it, last updated December 1, 2026. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
How severe is CVE-2026-140097?
| Score | Version | Vector | Source |
|---|---|---|---|
| Critical 9.1 | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N | GitHub_M |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2026-140097 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: poc; automatable: yes; technical impact: total (CISA ADP, December 1, 2026)
- EPSS
- 1.83% probability of exploitation activity in the next 30 days, percentile 79.6 (FIRST EPSS, scores of December 3, 2026)
What kind of flaw is it?
- CWE-116 Improper Encoding or Escaping of Output
Where are the vendor advisories and references?
- https://github.com/vitejs/vite/security/advisories/GHSA-p4f5-76q4-ffq7 x_refsource_CONFIRM
- https://github.com/vitejs/vite/pull/24043 x_refsource_MISC
- https://github.com/vitejs/vite/pull/24044 x_refsource_MISC
- https://github.com/vitejs/vite/commit/4b4291018a34d1591a6a18ab5c406d5b6a7a4ea1 x_refsource_MISC
- https://github.com/vitejs/vite/commit/517affb174632db347a6a2426f12eab020277946 x_refsource_MISC
- https://github.com/vitejs/vite/commit/8ef8a1b27bcd0e8e7693569f98b52b1b111025ca x_refsource_MISC
- https://github.com/vitejs/vite/commit/e5f23b60f0c46a906a60986faad88a5bd7611a15 x_refsource_MISC
- https://github.com/vitejs/vite/blob/v6.4.6/packages/vite/CHANGELOG.md x_refsource_MISC
- https://github.com/vitejs/vite/blob/v7.3.8/packages/vite/CHANGELOG.md x_refsource_MISC
- https://github.com/vitejs/vite/blob/v8.1.7/packages/vite/CHANGELOG.md x_refsource_MISC
- https://github.com/vitejs/vite/blob/v8.2.5/packages/vite/CHANGELOG.md x_refsource_MISC
- https://github.com/vitejs/vite/releases/tag/v6.4.6 x_refsource_MISC
- https://github.com/vitejs/vite/releases/tag/v7.3.8 x_refsource_MISC
- https://github.com/vitejs/vite/releases/tag/v8.1.7 x_refsource_MISC
- https://github.com/vitejs/vite/releases/tag/v8.2.5 x_refsource_MISC
- https://github.com/vitejs/vite/releases/tag/v8.3.7 x_refsource_MISC
When was it published, and where is the official record?
- Reserved
- November 30, 2026
- Published
- November 30, 2026, 22:25 UTC
- CVE record updated
- December 1, 2026, 14:55 UTC by GitHub_M
- NVD
- Received, last modified December 1, 2026, 15:17 UTC
- Last checked
- CVE list December 1, 2026, 15:10 UTC; NVD December 1, 2026, 16:09 UTC; KEV December 3, 2026, 22:39 UTC; EPSS December 3, 2026
- Official record
- cve.org · NVD
What other CVEs affect vite?
- Mar 31, 2025CVE-2025-31125 vitejs vite: information disclosure exploited
- Nov 30, 2026CVE-2026-140098 vitejs vite: information disclosure
- Oct 28, 2026CVE-2026-118662 vitejs vite: incorrect Behavior Order: Validate Before Canonicalize
- Oct 20, 2026CVE-2026-112947 vitejs vite: path traversal (reading or writing files outside the intended folder)
- Oct 20, 2026CVE-2026-112946 vitejs vite: path traversal (reading or writing files outside the intended folder)
- Oct 20, 2026CVE-2026-112945 vitejs vite: cross-site scripting (XSS)
- Oct 20, 2026CVE-2026-112944 vitejs launch-editor: argument injection
- Oct 20, 2026CVE-2026-112943 vitejs launch-editor: OS command injection
Questions about CVE-2026-140097
Is CVE-2026-140097 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 22:39 UTC. FIRST's EPSS gives it a 1.83% chance of exploitation activity in the next 30 days (scores of December 3, 2026).
Which versions of vitejs vite are affected by CVE-2026-140097?
vite >= 4.0.0, < 6.4.6, vite >= 7.0.0, < 7.3.8, vite >= 8.0.0, < 8.1.7, vite >= 8.2.0, < 8.2.5, vite >= 8.3.0, < 8.3.7 and vite-plus < 1.5.1, per the CVE record by GitHub_M. The tables above give every range the sources list.
Which version fixes CVE-2026-140097?
None of the sources (the CVE record, the NVD and GitHub's reviewed advisories) lists a fixed version yet. Check the vendor's advisory in the references.
How severe is CVE-2026-140097?
Critical (9.1, CVSS 4.0, from GitHub_M). The severity table above shows each score with its source.
Where is the official record of CVE-2026-140097?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.