Patchfirst
CVE-2026-39365 Public exploit Medium · 6.3 EPSS 0.9%

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

vitejs · vite

Official description · CVE.org

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.

Breakdown
64.2 / 100
Exploited
Yes, in VulnCheck KEV
Reports
0
Tactics
0/15

Disclosed on 7 Apr 2026. No public exploit code or confirmed exploitation is recorded.

See the family tree

13 related vulnerabilities in the same code over 19 months. The latest fix listed for vite is 8.3.3.

Same bug familyLinked by evidence that a fix failed or the same code was patched again. Oldest first.

  1. CVE-2024-45811server.fs.deny bypassed when using ?import&raw in vite17 Sep 2024
  2. relatedMedium

    Why these are linked:

    CVE-2025-30208Vite bypasses server.fs.deny when using `?raw??`24 Mar 2025
  3. relatedHigh

    Why these are linked:

    • Fixed one release later6.2.3 → 6.2.4 (vite)
    • Fixed one release later4.5.10 → 4.5.11 (vite)
    • Same code patched: transform.ts, index.html (machine-matched)Functions: transformMiddlewarecommit 315695ecommit 80381c3commit 5967313
    • Similar weakness in the same product (machine-matched)same package + description similarity
    CVE-2025-31125Vite Vitejs Improper Access Control31 Mar 2025KEV
  4. relatedHigh

    Why these are linked:

    • Fixed one release later6.2.4 → 6.2.5 (vite)
    • Fixed one release later4.5.11 → 4.5.12 (vite)
    • Same code patched: transform.ts, index.html (machine-matched)Functions: transformMiddlewarecommit 5967313commit 62d7e81
    CVE-2025-31486Vite allows server.fs.deny to be bypassed with .svg or relative…3 Apr 2025
  5. relatedMedium

    Why these are linked:

    CVE-2026-39364Vite has a `server.fs.deny` bypass with queries7 Apr 2026
  6. relatedMedium

    Why these are linked:

    This CVECVE-2026-39365Vite has a Path Traversal in Optimized Deps `.map` Handling7 Apr 2026

7 more CVEs are in this family. See the family tree

Fixes in vitenpm package, by fixed version. Earlier and later fixes in the same package, not necessarily the same bug.

  1. 7.1.11CVE-2025-6252220 Oct 2025
  2. 8.0.5CVE-2026-393637 Apr 2026
  3. 8.0.5CVE-2026-393647 Apr 2026
  4. 8.0.5CVE-2026-393657 Apr 2026
  5. 8.0.16CVE-2026-5357122 Jun 2026
  6. 8.0.16CVE-2026-5363222 Jun 2026
  7. 8.3.3CVE-2026-11294220 Oct 2026Latest listed

techniques

No techniques linked

No ATT&CK techniques are linked to this CVE yet. MITRE CTID has not mapped it, and no report passage in the corpus ties it to a technique.

Am I affected? What do I upgrade to?

From GitHub Security Advisories and OSV

1 package in 1 ecosystem. Main package: vite.

Upgrade to 8.0.5 or later

Fixes this CVE and 1 other known vulnerability in this package (CVE-2026-39364).

npmnpm install vite@8.0.5

The first fix for CVE-2026-39365.

Affected versions, by release line

If you runUpgrade to
8.0.0 up to 8.0.58.0.5
7.0.0 up to 7.3.27.3.2
All versions before 6.4.26.4.2

“Up to” means the second version is the fix and is not affected.

Check your lockfile against all CVEs

What security researchers reported

Not named in any threat report yet

Also mentioned in 16 community threat pulses (AlienVault OTX)

Weaker evidence

Pulses are indicator collections that anyone can publish. A mention is not confirmation of exploitation.

References

1 link, grouped by NVD tag
↑ ↓ chooseEnter openEsc close