CVE-2026-39365: Vite Vulnerable to Path Traversal
Affects viteSource GCVE Database
Not known to be exploited · public detection template (Nuclei) · CVSS 6.3 Medium : upgrade to 8.0.5 when convenient.
Data as of 13 Nov 2026, 21:06 UTC
- Patch
- Available – fixed in 8.0.5
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 7 Apr 2026
Detectable: evidence found.
nuclei template: Vite Dev Server - Path Traversal in Optimized Deps .map Handling
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: evidence found.
3 exposed hosts found; no attack traffic recorded
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), OffSeq Mirage (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 13 Nov 2026.
What to do
Upgrade vite to 8.0.5.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Homebrewvitepkg:brew/viteOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
Upgrade Vite to version 8.0.5 or later, where this path traversal vulnerability is fixed. Until patched, avoid exposing the Vite dev server to the network using the --host or server.host options if sensitive .map files exist. The vendor advisory confirms a patch is available and remediation is to update to the fixed version.
Description
Vite versions from 2.5.1 up to but not including 8.0.5 have a path traversal vulnerability in the dev server's handling of optimized dependency source map (.map) files. This flaw allows an attacker to retrieve .map files located outside the project root by exploiting insufficient path sanitization, bypassing the server's filesystem strict allow list. The vulnerability only affects applications that expose the Vite dev server to the network and have sensitive .map files with predictable paths. A fix is available in version 8.0.5.
References
- github.com/vitejs/vite/security/advisories/GHSA-4w7w-66w2-5vf9 (opens in a new tab)
- nvd.nist.gov/vuln/detail/CVE-2026-39365 (opens in a new tab)
- github.com/vitejs/vite/pull/22161 (opens in a new tab)
- github.com/vitejs/vite/commit/79f002f2286c03c88c7b74c511c7f9fc6dc46694 (opens in a new tab)
- github.com/vitejs/vite (opens in a new tab)
- github.com/vitejs/vite/releases/tag/v6.4.2 (opens in a new tab)
- github.com/vitejs/vite/releases/tag/v7.3.2 (opens in a new tab)
- github.com/vitejs/vite/releases/tag/v8.0.5 (opens in a new tab)