# CVE-2026-39365: Vite has a Path Traversal in Optimized Deps `.map` Handling

- Severity: Medium 6.3 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.93%, higher than 61% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-04-06T18:03:46.000Z
- Modified: 2026-09-10T03:50:42.779Z
- Also known as: GHSA-4w7w-66w2-5vf9
- Weaknesses: CWE-22, CWE-200
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- vitejs vite: >= 8.0.0, < 8.0.5; >= 7.0.0, < 7.3.2; >= 6.0.0, < 6.4.2; from 6.0.0 up to 6.4.1; from 7.0.0 up to 7.3.1; from 8.0.0 up to 8.0.4
- vitejs vite-plus: < 0.1.16
- vite (npm): from 8.0.0 before 8.0.5; from 7.0.0 before 7.3.2; before 6.4.2
- voidzero vite+: up to 0.1.15

## Every score

- GitHub_M: CVSS:4.0 6.3 Medium `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N`
- GitHub: CVSS:4.0 Medium `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N`
- NVD: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`

## References

- <https://github.com/vitejs/vite/security/advisories/GHSA-4w7w-66w2-5vf9> (exploit, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-39365> (advisory)
- <https://github.com/vitejs/vite/pull/22161> (web)
- <https://github.com/vitejs/vite/commit/79f002f2286c03c88c7b74c511c7f9fc6dc46694> (web)
- <https://github.com/vitejs/vite> (package)
- <https://github.com/vitejs/vite/releases/tag/v6.4.2> (web)
- <https://github.com/vitejs/vite/releases/tag/v7.3.2> (web)
- <https://github.com/vitejs/vite/releases/tag/v8.0.5> (web)

## Sources

- CVE List: [CVE-2026-39365](https://www.cve.org/CVERecord?id=CVE-2026-39365), CVE Terms of Use, modified 2026-04-15
- GitHub Advisory Database: [GHSA-4w7w-66w2-5vf9](https://github.com/advisories/GHSA-4w7w-66w2-5vf9), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-39365](https://nvd.nist.gov/vuln/detail/CVE-2026-39365), Public domain, modified 2026-07-24

---

Page: https://cve.day/CVE-2026-39365 · Whole record: https://cve.day/CVE-2026-39365.json · Rebuilt by cve.day 2026-11-25T22:59:18.162Z
