Vite has a Path Traversal in Optimized Deps `.map` Handling
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- Present
- Impact type
- Information disclosure
- Confidentiality · integrity · availability
- Low · None · None
- Fix status
- Partial Red Hat: 8 without a fix
Attack profile from CVSS 4.0 · CNA. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-22 and the CVSS impact.
Summary
Vite is a frontend tooling framework for JavaScript. From 6.0.0 to before 6.4.2, 7.3.2, and 8.0.5, the dev server’s handling of .map requests for optimized dependencies resolves file paths and calls readFile without restricting ../ segments in the URL. As a result, it is possible to bypass the server.fs.strict allow list and retrieve .map files located outside the project root, provided they can be parsed as valid source map JSON. This vulnerability is fixed in 6.4.2, 7.3.2, and 8.0.5.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- Yes
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| vitejs | vite | 8.0.0 to before 8.0.5; 7.0.0 to before 7.3.2; 6.0.0 to before 6.4.2 | 8.0.5, 7.3.2, 6.4.2 | Patch available | CNA |
| vitejs | vite-plus | before 0.1.16 | 0.1.16 | Patch available | CNA |
| — | vite (npm) | 8.0.0 to before 8.0.5 | 8.0.5 | Patch available | GHSA-4w7w-66w2-5vf9 |
| — | vite (npm) | 7.0.0 to before 7.3.2 | 7.3.2 | Patch available | GHSA-4w7w-66w2-5vf9 |
| — | vite (npm) | before 6.4.2 | 6.4.2 | Patch available | GHSA-4w7w-66w2-5vf9 |
- vite Vendorvitejs Affected 8.0.0 to before 8.0.5; 7.0.0 to before 7.3.2; 6.0.0 to before 6.4.2 Fixed in 8.0.5, 7.3.2, 6.4.2 Patch available CNA
- vite-plus Vendorvitejs Affected before 0.1.16 Fixed in 0.1.16 Patch available CNA
- vite (npm) Vendor— Affected 8.0.0 to before 8.0.5 Fixed in 8.0.5 Patch available GHSA-4w7w-66w2-5vf9
- vite (npm) Vendor— Affected 7.0.0 to before 7.3.2 Fixed in 7.3.2 Patch available GHSA-4w7w-66w2-5vf9
- vite (npm) Vendor— Affected before 6.4.2 Fixed in 6.4.2 Patch available GHSA-4w7w-66w2-5vf9
Remediation
- Fix · CNA vite (vitejs) Fixed in 8.0.5, 7.3.2, 6.4.2
- Fix · CNA vite-plus (vitejs) Fixed in 0.1.16
- Fix · GHSA-4w7w-66w2-5vf9 vite (npm) Fixed in 8.0.5 Advisory →
- Fix · GHSA-4w7w-66w2-5vf9 vite (npm) Fixed in 7.3.2 Advisory →
- Fix · GHSA-4w7w-66w2-5vf9 vite (npm) Fixed in 6.4.2 Advisory →
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Advanced Cluster Security 4 | Affected | No fix yet: Fix deferred |
| Red Hat Ansible Automation Platform 2 | Affected | No fix yet: Fix deferred |
| Red Hat Build of Keycloak | Affected | No fix yet: Fix deferred |
| Red Hat Build of Podman Desktop | Affected | No fix yet: Fix deferred |
| Red Hat Build of Podman Desktop - Tech Preview | Affected | No fix yet: Fix deferred |
| Red Hat JBoss Enterprise Application Platform 8 | Affected | No fix yet: Fix deferred |
| Red Hat JBoss Enterprise Application Platform Expansion Pack | Affected | No fix yet: Fix deferred |
| Red Hat OpenShift Container Platform 4 | Affected | No fix yet: Fix deferred |
Timeline
- 2026-10-02 Threatist record created from CVE-2026-39365
- 2026-10-03 Alias added: GHSA-4w7w-66w2-5vf9
References
Other 6
More vitejs Vite vulnerabilities
- TI-2025-22386 Vite has a `server.fs.deny` bypassed for `inline` and `raw` with `?import` query KEVCVSS 3.1HIGH 7.5
- TI-2026-28350 Vite Affected by Arbitrary File Read via Vite Dev Server WebSocket CVSS 4.0HIGH 8.2
- TI-2025-21544 Vite bypasses server.fs.deny when using `?raw??` 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
- TI-2026-28351 Vite has a `server.fs.deny` bypass with queries CVSS 4.0HIGH 8.2
Sources
- CVE-2026-39365 · CVE Program
- CVE-2026-39365 · NVD
- FIRST EPSS
- GHSA-4w7w-66w2-5vf9 · GitHub Advisory Database · CC BY 4.0
- CVE-2026-39365 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences