Vite: Remote code execution using `__vite-browser-external` virtual module

Patch this weekData theft and tampering over the network, no login needed.
9.1CRITICAL

CVE-2026-140097

Key Information:

Vendor

Vitejs

Status
Vite
Vite-plus
CVE ID
CVE ID:
CVE-2026-140097
Vendor
CVE Published:
30 November 2026
Fixed in
Fixed in:
4.0.0, 6.4.6, 7.0.0, 7.3.8, 8.0.0, 8.1.7 +2 more

Timeline

  • Vulnerability published

  • Vulnerability Reserved

How risky is it?

  • Yes: Works over the network, no login needed
  • No: No public exploit yet
  • No: Not on CISA's exploited list
  • No: No ransomware use seen

Our verdict

Patch this week

Exploitation is likely. Prioritise the fix.

What to do

1Update to a fixed version

Several version ranges are affected; the full list is under Affected Version(s).

Install the vite release that fixes your version line, or later:

4.0.0, 6.4.67.0.0, 7.3.88.0.0, 8.1.78.2.0, 8.2.58.3.0, 8.3.7
2Can't patch yet? Reduce exposure

It can be reached over the network, so limit who can reach vite. Block it from the internet, allow only trusted hosts or a VPN, and turn off the affected feature if you don't use it, until you can update.

3Why it's rated "Patch this week"
  • It can be exploited remotely without credentials.
  • Its CVSS severity is critical (9.1).

What is CVE-2026-140097?

CVE-2026-140097 affects Vite and vite-plus, which are frontend tooling frameworks for JavaScript. The flaw lies in the handling of the __vite-browser-external virtual module in versions prior to 6.4.6, 7.3.8, 8.1.7, 8.2.5, and 8.3.7 for Vite, and prior to 1.5.1 for vite-plus. A network-exposed development server embeds unescaped request-derived module identifiers into trusted generated JavaScript. An unauthenticated attacker can exploit this to inject an import that allows access to server-side evaluation, leading to arbitrary code execution.

This vulnerability is fixed in Vite versions 6.4.6, 7.3.8, 8.1.7, 8.2.5, and 8.3.7, and in vite-plus version 1.5.1.

Potential Impact of CVE-2026-140097

  1. Arbitrary code execution: An attacker can execute arbitrary code in the development-server process, potentially leading to full control over the server environment.

  2. Local file disclosure: The vulnerability allows an attacker to access and disclose local files on the server.

Affected Version(s)

vite >= 4.0.0, < 6.4.6 < 4.0.0, 6.4.6

vite >= 7.0.0, < 7.3.8 < 7.0.0, 7.3.8

vite >= 8.0.0, < 8.1.7 < 8.0.0, 8.1.7

References

File Exposure Vulnerability in Vite Frontend Tooling Framework

CVE-2026-39364
VitejsVite8.2HIGH

File Access Vulnerability in Vite Frontend Tooling Framework

CVE-2025-32395
VitejsVite👾6MEDIUM

Arbitrary File Disclosure Vulnerability in Vite Frontend Framework

CVE-2025-31486
VitejsVite👾5.3MEDIUM
View more Vitejs vulnerabilities...

Facts on this page come from the sources listed above; the writeup is AI-assisted. How we rate vulnerabilities · Report a correction

CVSS V4

Score:
9.1
Severity:
CRITICAL
Confidentiality:
High
Integrity:
High
Availability:
None
Attack Vector:
Network
Attack Complexity:
Low
Attack Required:
Physical
Privileges Required:
Undefined
User Interaction:
None
.