Read the docs

Remote code execution in Vite via virtual module identifiers

Priority MEDIUM 54CWE-116Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
Low
Attack requirements
Present
Impact type
—
Confidentiality · integrity · availability
High · High · None
Fix status
Fixed

Attack profile from CVSS 4.0 · CNA. Fix status from CNA.

Summary

Vite from 4.0.0 before 6.4.6, from 7.0.0 before 7.3.8, from 8.0.0 before 8.1.7, from 8.2.0 before 8.2.5, and from 8.3.0 before 8.3.7, and vite-plus before 1.5.1, do not escape request-derived module identifiers embedded in generated JavaScript (CWE-116). A remote unauthenticated attacker can inject an import into a network-exposed development server, disclosing local files and executing arbitrary code in the server process.

Written with Claude Haiku 5.5 from the sources below · 2026-11-30

Description from the CNA

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.

Why it matters now

Fix Fixed vite (vitejs): 6.4.6, 7.3.8, 8.1.7 +2vite-plus (vitejs): 1.5.1

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
vitejsvite4.0.0 to before 6.4.6; 7.0.0 to before 7.3.8; 8.0.0 to before 8.1.7; 8.2.0 to before 8.2.5; 8.3.0 to before 8.3.76.4.6, 7.3.8, 8.1.7, 8.2.5, 8.3.7Patch availableCNA
vitejsvite-plusbefore 1.5.11.5.1Patch availableCNA
  • vite Vendorvitejs Affected 4.0.0 to before 6.4.6; 7.0.0 to before 7.3.8; 8.0.0 to before 8.1.7; 8.2.0 to before 8.2.5; 8.3.0 to before 8.3.7 Fixed in 6.4.6, 7.3.8, 8.1.7, 8.2.5, 8.3.7 Patch available CNA
  • vite-plus Vendorvitejs Affected before 1.5.1 Fixed in 1.5.1 Patch available CNA

CPE names Threatist (inferred) · 1

Inferred from how NVD named this product before; not given by a source.

CPEVersionsRoleVendor
cpe:2.3:a:vitejs:vite:*:*:*:*:*:*:*:*——vitejs
  • cpe:2.3:a:vitejs:vite:*:*:*:*:*:*:*:* Versions — — ·vitejs

Remediation

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.

Written with Claude Haiku 5.5 from the sources below · 2026-11-30

  • Fix · CNA vite (vitejs) Fixed in 6.4.6, 7.3.8, 8.1.7, 8.2.5, 8.3.7
  • Fix · CNA vite-plus (vitejs) Fixed in 1.5.1

Timeline

  1. 2026-11-30 Threatist record created from CVE-2026-140097

References

  • TI-2025-22386 Vite bypasses server.fs.deny for files loaded with ?inline or ?raw KEVCVSS 3.1HIGH 7.5
  • TI-2025-41248 Code injection in vitejs vite-plugin-react CVSS 3.1CRITICAL 9.8
  • TI-2026-28350 Vite Affected by Arbitrary File Read via Vite Dev Server WebSocket CVSS 4.0HIGH 8.2
  • TI-2025-41735 @vitejs/plugin-rsc has Arbitrary File Read via `/__vite_rsc_findSourceMapURL` Endpoint on Development CVSS 3.1HIGH 7.5
  • TI-2023-16938 Vite Server Options (server.fs.deny) can be bypassed using double forward-slash (//) CVSS 3.1HIGH 7.5
  • TI-2026-38634 Vite: `server.fs.deny` bypass on Windows alternate paths CVSS 4.0HIGH 8.2
See all 31 →

Sources

This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences