9.1
CRITICAL CVSS 4.0
CVE-2026-140097
Vite: Remote code execution using `__vite-browser-external` virtual module
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.

INFO

Published Date :

Nov. 30, 2026, 11:17 p.m.

Last Modified :

Nov. 30, 2026, 11:17 p.m.

Remotely Exploit :

Yes !
Affected Products

The following products are affected by CVE-2026-140097 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Vitejs vite
2 Vitejs vite-plus
CVSS Scores
The Common Vulnerability Scoring System is a standardized framework for assessing the severity of vulnerabilities in software and systems. We collect and displays CVSS scores from various sources for each CVE.
Score Version Severity Vector Exploitability Score Impact Score Source
CVSS 4.0 CRITICAL [email protected]
Solution
Update Vite to a patched version to prevent arbitrary code execution and file disclosure.
  • Update Vite to version 6.4.6 or later.
  • Update vite-plus to version 1.5.1 or later.
  • Apply patches provided by the vendor for affected versions.
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2026-140097 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2026-140097 weaknesses.

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2026-140097 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2026-140097 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • New CVE Received by [email protected]

    Nov. 30, 2026

    Action Type Old Value New Value
    Added 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.
    Added CVSS V4.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
    Added CWE CWE-116
    Added Affected New affected value received. <a href="https://github.com/CVEProject/cvelistV5/blob/main/cves/2026/140xxx/CVE-2026-140097.json">CVE-2026-140097</a>
    Added Reference https://github.com/vitejs/vite/blob/v6.4.6/packages/vite/CHANGELOG.md
    Added Reference https://github.com/vitejs/vite/blob/v7.3.8/packages/vite/CHANGELOG.md
    Added Reference https://github.com/vitejs/vite/blob/v8.1.7/packages/vite/CHANGELOG.md
    Added Reference https://github.com/vitejs/vite/blob/v8.2.5/packages/vite/CHANGELOG.md
    Added Reference https://github.com/vitejs/vite/commit/4b4291018a34d1591a6a18ab5c406d5b6a7a4ea1
    Added Reference https://github.com/vitejs/vite/commit/517affb174632db347a6a2426f12eab020277946
    Added Reference https://github.com/vitejs/vite/commit/8ef8a1b27bcd0e8e7693569f98b52b1b111025ca
    Added Reference https://github.com/vitejs/vite/commit/e5f23b60f0c46a906a60986faad88a5bd7611a15
    Added Reference https://github.com/vitejs/vite/pull/24043
    Added Reference https://github.com/vitejs/vite/pull/24044
    Added Reference https://github.com/vitejs/vite/releases/tag/v6.4.6
    Added Reference https://github.com/vitejs/vite/releases/tag/v7.3.8
    Added Reference https://github.com/vitejs/vite/releases/tag/v8.1.7
    Added Reference https://github.com/vitejs/vite/releases/tag/v8.2.5
    Added Reference https://github.com/vitejs/vite/releases/tag/v8.3.7
    Added Reference https://github.com/vitejs/vite/security/advisories/GHSA-p4f5-76q4-ffq7
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.