Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

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

Quick assessment

Affected
vitejs vite
Exploitation
Public or AI PoC available; prioritize validation
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

Vite是Vite开源的一种新型的前端构建工具。 Vite 6.0.0至6.4.2之前版本、7.3.2之前版本和8.0.5之前版本存在路径遍历漏洞,该漏洞源于对.map请求的路径遍历限制不足,可能导致绕过允许列表并检索项目根目录外的文件。

AI Predicted 5.3 Difficulty: Easy EPSS 0.98% · P61

Public Exploits 1

Possible ATT&CK Techniques 1 AI

T1135 · Network Share Discovery
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-39365

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
Vite has a Path Traversal in Optimized Deps `.map` Handling
Source: CVE Program / CVE List V5
Vulnerability 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.
Source: CVE Program / CVE List V5
CVSS Information
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
Source: CVE Program / CVE List V5
Vulnerability Type
对路径名的限制不恰当(路径遍历)
Source: CVE Program / CVE List V5
Vulnerability Title
Vite 路径遍历漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
Vite是Vite开源的一种新型的前端构建工具。 Vite 6.0.0至6.4.2之前版本、7.3.2之前版本和8.0.5之前版本存在路径遍历漏洞,该漏洞源于对.map请求的路径遍历限制不足,可能导致绕过允许列表并检索项目根目录外的文件。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
vitejs vite >= 8.0.0, < 8.0.5 -
vitejs vite-plus < 0.1.16 -

II. Public POCs for CVE-2026-39365

# POC Description Source Link Shenlong Link
1 Vite development server versions prior to 8.0.5, 7.3.2, and 6.4.2 are vulnerable to path traversal through the optimized dependencies sourcemap handler. The dev server's handling of .map requests for optimized dependencies resolves file paths via normalizePath(path.resolve(root, url.slice(1))) and calls readFile without restricting ../ segments in the URL. This allows an attacker to bypass server.fs.strict and retrieve auto-generated sourcemaps for files located outside the project root, leaking absolute filesystem paths. Only dev servers explicitly exposed to the network using --host or server.host are affected. https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2026/CVE-2026-39365.yaml POC Details
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-39365

请登录查看更多情报信息。

Same Patch Batch · vitejs · 2026-04-07 · 3 CVEs total

CVE-2026-39364 8.2 HIGH Vite has a `server.fs.deny` bypass with queries
CVE-2026-39363 8.2 HIGH Vite Affected by Arbitrary File Read via Vite Dev Server WebSocket

IV. Related Vulnerabilities

V. Comments for CVE-2026-39365

No comments yet


Leave a comment