Remote code execution in Vite via virtual module identifiers
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
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
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
- 2026-11-30 Threatist record created from CVE-2026-140097
References
Other 16
- https://github.com/vitejs/vite/security/advisories/GHSA-p4f5-76q4-ffq7
- https://github.com/vitejs/vite/pull/24043
- https://github.com/vitejs/vite/pull/24044
- https://github.com/vitejs/vite/commit/4b4291018a34d1591a6a18ab5c406d5b6a7a4ea1
- https://github.com/vitejs/vite/commit/517affb174632db347a6a2426f12eab020277946
- https://github.com/vitejs/vite/commit/8ef8a1b27bcd0e8e7693569f98b52b1b111025ca
- https://github.com/vitejs/vite/commit/e5f23b60f0c46a906a60986faad88a5bd7611a15
- https://github.com/vitejs/vite/blob/v6.4.6/packages/vite/CHANGELOG.md
- https://github.com/vitejs/vite/blob/v7.3.8/packages/vite/CHANGELOG.md
- https://github.com/vitejs/vite/blob/v8.1.7/packages/vite/CHANGELOG.md
- https://github.com/vitejs/vite/blob/v8.2.5/packages/vite/CHANGELOG.md
- https://github.com/vitejs/vite/releases/tag/v6.4.6
- https://github.com/vitejs/vite/releases/tag/v7.3.8
- https://github.com/vitejs/vite/releases/tag/v8.1.7
- https://github.com/vitejs/vite/releases/tag/v8.2.5
- https://github.com/vitejs/vite/releases/tag/v8.3.7
More vitejs vulnerabilities
- 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
Sources
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences