Home › CVE › JavaScript
CVE-2026-140097 — vitejs vite
One of 2 vitejs vite vulnerabilities published together by NVD: our article covers all of them.
JavaScriptWebBrowsersVulnerabilitiesResearch article
Vite Development Server Allows Remote Code Execution in Vulnerable Versions
| CVE | CVE-2026-140097 |
|---|---|
| Vendor and product | vitejs vite; vitejs vite-plus |
| Published | December 01, 2026 00:05 UTC |
| Research cut-off | November 30, 2026 23:50 UTC |
| Sources reviewed | 2: 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
| Field | Value |
|---|---|
| CVE ID | CVE-2026-140097 [1] |
| Vendor | vitejs [1] |
| Product | vite and vite-plus [1] |
| CWE | CWE-116 (Improper Encoding or Escaping of Output) [1] |
| CVSS 4.0 | 9.1 CRITICAL, scored by security-advisories@github.com (Secondary) [1] |
| Published | 2026-11-30T23:17:24 [1] |
| Last Modified | 2026-11-30T23:17:24 [1] |
| Record Status | Received [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
| Product | Affected Versions | Fixed 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
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
- 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.
- 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.
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.
Severity breakdown
Critical · 9.1
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
Weakness
- CWE-116: Improper Encoding or Escaping of Output
Affected and fixed versions
| Product | Affected versions | Fixed 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 | — |
References by type
Vendor advisories
Patches and fixed releases
- github.com/vitejs/vite/commit/4b4291018a34d1591a6a18ab5c406d5b6a7a4ea1
- github.com/vitejs/vite/commit/517affb174632db347a6a2426f12eab020277946
- github.com/vitejs/vite/commit/8ef8a1b27bcd0e8e7693569f98b52b1b111025ca
- github.com/vitejs/vite/commit/e5f23b60f0c46a906a60986faad88a5bd7611a15
- github.com/vitejs/vite/pull/24043
- github.com/vitejs/vite/pull/24044
- github.com/vitejs/vite/releases/tag/v6.4.6
- github.com/vitejs/vite/releases/tag/v7.3.8
- github.com/vitejs/vite/releases/tag/v8.1.7
- github.com/vitejs/vite/releases/tag/v8.2.5
- github.com/vitejs/vite/releases/tag/v8.3.7
Other references
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.