Path Traversal in Vitejs Vite
CVE-2026-39365
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.
Vulnerability class: Path Traversal (Directory Traversal)
EPSS: 0.009 (57.7th percentile) — read the EPSS interpretation.
CVSS v3 metric
CVSS v3 base score 5.3 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N.
Affected products
- Vitejs Vite — versions >= 8.0.0, < 8.0.5, >= 7.0.0, < 7.3.2, >= 6.0.0, < 6.4.2
- Vitejs Vite-plus — versions < 0.1.16
- Voidzero Vite\+
Weakness classification (CWE)
References
- security-advisories@github.com (x_refsource_CONFIRM, Exploit, Vendor Advisory)
Frequently asked questions
- What is CVE-2026-39365?
- CVE-2026-39365 is a medium-severity vulnerability in Vitejs Vite, classified under Path Traversal. CVSS score: 5.3/10. Published 2026-04-07.
- How severe is CVE-2026-39365?
- Medium severity. CVSS v3 base score is 5.3 out of 10.