Exploited now
Vulnerability WatchVulnerabilities, exploits & advisories — updated every 15 minutes
Alerts

Home › CVE › JavaScript

CVE-2026-140097 — vitejs vite

Critical · CVSS 9.1 First seen November 30, 2026

One of 2 vitejs vite vulnerabilities published together by NVD: our article covers all of them.

JavaScriptWebBrowsersVulnerabilities

Research article

Vite Development Server Allows Remote Code Execution in Vulnerable Versions

CVECVE-2026-140097
Vendor and productvitejs vite; vitejs vite-plus
PublishedDecember 01, 2026 00:05 UTC
Research cut-offNovember 30, 2026 23:50 UTC
Sources reviewed2: NVD record (last modified 2026-11-30); CISA KEV catalog

Executive summary

CVE-2026-140097 affects Vite and vite-plus, with CVSS 4.0 score 9.1 CRITICAL. The flaw allows unauthenticated attackers to inject imports and execute arbitrary code on the development server. The reviewed sources do not report exploitation. The main action is to update to the fixed versions [1].

Key points

  • CVE-2026-140097 impacts versions of Vite and vite-plus with a CVSS 4.0 score of 9.1 CRITICAL [1].
  • The flaw enables remote attackers to inject imports and execute arbitrary code on the development server [1].
  • The reviewed sources do not provide evidence of exploitation [2].
  • Vite 6.4.6, 7.3.8, 8.1.7, 8.2.5, and 8.3.7, and vite-plus 1.5.1 are the fixed versions [1].
  • The vulnerability is not listed in the CISA Known Exploited Vulnerabilities Catalog [2].

Vulnerability identification

FieldValue
CVE IDCVE-2026-140097 [1]
Vendorvitejs [1]
Productvite and vite-plus [1]
CWECWE-116 (Improper Encoding or Escaping of Output) [1]
CVSS 4.09.1 CRITICAL, scored by security-advisories@github.com (Secondary) [1]
Published2026-11-30T23:17:24 [1]
Last Modified2026-11-30T23:17:24 [1]
Record StatusReceived [1]

Vulnerability description

A development server that is accessible over a network in Vite and vite-plus incorporates module identifiers from certain virtual modules into generated JavaScript without proper encoding, which allows attackers to inject imports and access server-side evaluation. This can lead to the exposure of local files and the execution of arbitrary code within the development-server process [1].

Attack surface and exploitation prerequisites

The CVSS vector indicates that the attack requires network access and no user interaction. The attacker does not need elevated privileges and can exploit the vulnerability through mechanisms like import.meta.glob or the creation of new Workers [1].

Impact analysis

The CVSS 4.0 vector indicates high confidentiality and integrity impact and no availability impact [1].

Affected products and versions

ProductAffected VersionsFixed Versions
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 [1]6.4.6, 7.3.8, 8.1.7, 8.2.5, 8.3.7 [1]
vitejs vite-plus< 1.5.1 [1]1.5.1 [1]

Exploitation and threat intelligence status

CVE-2026-140097 is not included in the CISA Known Exploited Vulnerabilities Catalog as of 2026-11-30. This absence does not confirm that the vulnerability has not been exploited [2].

Detection and exposure assessment

Users can assess their exposure by checking whether their installed version of Vite or vite-plus is within the vulnerable range [1].

Remediation

The vulnerability is resolved in Vite versions 6.4.6, 7.3.8, 8.1.7, 8.2.5, and 8.3.7, as well as in vite-plus version 1.5.1 [1].

Remediation checklist

  1. Upgrade Vite to version 6.4.6, 7.3.8, 8.1.7, 8.2.5, or 8.3.7 [1].
  2. Update vite-plus to version 1.5.1 [1].
  3. Verify that no systems are running affected versions of Vite or vite-plus [1].
  4. Monitor for any signs of unauthorized imports or code execution on the development server.

Evidence gaps

  • The sources do not describe the internal workings of the affected component.
  • The sources do not elaborate on the root cause beyond the CWE identifier.
  • The sources do not detail the technical mechanics of the flaw.
  • The sources do not mention any indicators of compromise.
  • The sources do not provide a workaround or compensating control.

References

  1. CVE-2026-140097 record. NIST National Vulnerability Database (NVD), 2026-11-30. https://nvd.nist.gov/vuln/detail/CVE-2026-140097. Accessed 2026-11-30. CVE record, CVSS scores, affected versions, fixed versions, and description
  2. Known Exploited Vulnerabilities Catalog. Cybersecurity and Infrastructure Security Agency (CISA), 2026-11-30. https://www.cisa.gov/known-exploited-vulnerabilities-catalog. Accessed 2026-11-30. CISA KEV status and lack of exploitation evidence

Written with AI assistance from the 2 sources listed above, as of the research cut-off; each fact is cited to its source. Check the vendor's advisory before acting.

Summary

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: and __vite-optional-peer-dep: 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.

Description: NIST National Vulnerability Database (public domain)

Severity breakdown

Critical · 9.1 CVSS 4.0 base score from the CNA (github.com)

An attacker without an account can exploit this over the network, without any user action, but only under specific conditions.

Attack from
the network (remotely)
Attack complexity
low (no special conditions)
Special conditions
only in some setups or conditions
Login needed
no
User action needed
no
Impact
high on confidentiality and integrity, none on availability
Impact on other systems
none

Vector 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/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

Weakness

  • CWE-116: Improper Encoding or Escaping of Output

Affected and fixed versions

ProductAffected versionsFixed in
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—

From the vendor's CVE record; confirm with the vendor advisory before relying on a version number.

References by type

Vendor advisories

Patches and fixed releases

Other references

+1 more on the NVD record.

Details from NVD (public domain).

Affected

  • vitejs vite
  • vitejs vite-plus

Frequently asked questions

What is CVE-2026-140097?

CVE-2026-140097 affects Vite and vite-plus, with CVSS 4.0 score 9.1 CRITICAL. The flaw allows unauthenticated attackers to inject imports and execute arbitrary code on the development server. The reviewed sources do not report exploitation. The main action is to update to the fixed versions. Weakness type: Improper Encoding or Escaping of Output (CWE-116).

How severe is CVE-2026-140097?

CVE-2026-140097 has a CVSS 4.0 base score of 9.1 (critical), from the CNA (github.com). An attacker without an account can exploit this over the network, without any user action, but only under specific conditions.

Is CVE-2026-140097 being exploited?

Not as far as is known: CVE-2026-140097 is not in CISA's Known Exploited Vulnerabilities catalog as of December 1, 2026.

Which versions are affected by CVE-2026-140097?

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.

How do I fix CVE-2026-140097?

Upgrade Vite to version 6.4.6, 7.3.8, 8.1.7, 8.2.5, or 8.3.7. Update vite-plus to version 1.5.1. Verify that no systems are running affected versions of Vite or vite-plus.

Timeline & sources

References

Related vulnerabilities & news