CVE-2026-140097
Vite: Remote code execution using `__vite-browser-external` virtual module
Check your servers for CVE-2026-140097
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-140097 affects vite, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Severity (CVSS)
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
- Attack vector
- network: an attacker can reach the vulnerable part over the network, often from the internet
- Attack complexity
- low: an attack works without special conditions
- Attack requirements
- present: an attack works only when the target is in a certain state or configuration
- Privileges required
- none: the attacker does not need an account
- User interaction
- none: nobody has to click or open anything
- Impact on the vulnerable system
- confidentiality high, integrity high, availability none: what an attacker can read, change or stop in the vulnerable component
- Impact on other systems
- confidentiality none, integrity none, availability none: what an attacker can read, change or stop beyond it
Exploitation
EPSS 1.83%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 79.5% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 1 Dec 2026):
- Exploitation
- poc: a proof of concept is public
- Automatable
- yes: an attacker can automate the attack across many targets
- Technical impact
- total: full control of the component or of its data
Weakness
- CWE-116 Improper Encoding or Escaping of Output
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| vite |
affected >= 4.0.0, < 6.4.6 affected >= 7.0.0, < 7.3.8 affected >= 8.0.0, < 8.1.7 affected >= 8.2.0, < 8.2.5 affected >= 8.3.0, < 8.3.7
|
| vite-plus |
affected < 1.5.1
|
Is my server affected?
Find the installed version of vite and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.
Debian, Ubuntu
dpkg -l | grep -i vite
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2026-140097 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2026-140097RHEL, Rocky, Alma, Fedora
rpm -q vite
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2026-140097Alpine
apk list --installed | grep -i viteWith Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2026-140097
trivy image --scanners vuln IMAGE | grep CVE-2026-140097
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Exploits and proof of concept
- https://github.com/vitejs/vite/security/advisories/GHSA-p4f5-76q4-ffq7 github.com · exploit
Other references
- https://github.com/vitejs/vite/pull/24043 github.com
- https://github.com/vitejs/vite/pull/24044 github.com
- https://github.com/vitejs/vite/commit/4b4291018a34d1591a6a18ab5c406d5b6a7a4ea1 github.com
- https://github.com/vitejs/vite/commit/517affb174632db347a6a2426f12eab020277946 github.com
- https://github.com/vitejs/vite/commit/8ef8a1b27bcd0e8e7693569f98b52b1b111025ca github.com
- https://github.com/vitejs/vite/commit/e5f23b60f0c46a906a60986faad88a5bd7611a15 github.com
- https://github.com/vitejs/vite/blob/v6.4.6/packages/vite/CHANGELOG.md github.com
- https://github.com/vitejs/vite/blob/v7.3.8/packages/vite/CHANGELOG.md github.com
- https://github.com/vitejs/vite/blob/v8.1.7/packages/vite/CHANGELOG.md github.com
- https://github.com/vitejs/vite/blob/v8.2.5/packages/vite/CHANGELOG.md github.com
- https://github.com/vitejs/vite/releases/tag/v6.4.6 github.com
- https://github.com/vitejs/vite/releases/tag/v7.3.8 github.com
- https://github.com/vitejs/vite/releases/tag/v8.1.7 github.com
- https://github.com/vitejs/vite/releases/tag/v8.2.5 github.com
- https://github.com/vitejs/vite/releases/tag/v8.3.7 github.com
Source: the record CVE-2026-140097 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse