Skip to main content
← All vulnerabilities
CVE-2026-39365GHSA-4W7W-66W2-5VF9

Vite has a Path Traversal in Optimized Deps `.map` Handling

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 8.0.5, 7.3.2, 6.4.2, 0.1.16
1 Nuclei template
  • Exploitation: poc
  • Automatable: yes
  • Technical impact: total

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: yes · Technical impact: total

  3. Record last updated

Affected versions

  • vitejs vite

    From 8.0.0 · fixed in 8.0.5; From 7.0.0 · fixed in 7.3.2; From 6.0.0 · fixed in 6.4.2

  • vitejs vite-plus

    fixed in 0.1.16

  • vitenpm

    From 8.0.0 · fixed in 8.0.5

  • vitenpm

    From 7.0.0 · fixed in 7.3.2

  • vitenpm

    fixed in 6.4.2

References 2

GitHub · vitejs/vite

GitHub · projectdiscovery/nuclei-templates