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

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

CVE-2026-39363— Vite Affected by Arbitrary File Read via Vite Dev Server WebSocket

EPSS 2.53% · P86
Get alerts for future matching vulnerabilitiesLog in to subscribe

I. Basic Information for CVE-2026-39363

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 Affected by Arbitrary File Read via Vite Dev Server WebSocket
Source: NVD (National Vulnerability Database)
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, if it is possible to connect to the Vite dev server’s WebSocket without an Origin header, an attacker can invoke fetchModule via the custom WebSocket event vite:invoke and combine file://... with ?raw (or ?inline) to retrieve the contents of arbitrary files on the server as a JavaScript string (e.g., export default "..."). The access control enforced in the HTTP request path (such as server.fs.allow) is not applied to this WebSocket-based execution path. This vulnerability is fixed in 6.4.2, 7.3.2, and 8.0.5.
Source: NVD (National Vulnerability Database)
CVSS Information
N/A
Source: NVD (National Vulnerability Database)
Vulnerability Type
信息暴露
Source: NVD (National Vulnerability Database)
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之前版本存在访问控制错误漏洞,该漏洞源于WebSocket路径缺少访问控制,可能导致攻击者检索服务器上的任意文件。
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

VendorProductAffected VersionsCPESubscribe
vitejsvite >= 8.0.0, < 8.0.5 -
vitejsvite-plus < 0.1.16 -

II. Public POCs for CVE-2026-39363

#POC DescriptionSource LinkShenlong Link
1Vite dev server exposes the fetchModule method via its WebSocket HMR (Hot Module Replacement) endpoint using the vite-hmr sub-protocol. By connecting to the WebSocket endpoint and sending a crafted vite:invoke custom event that calls fetchModule with a file:// URL (e.g., file:///etc/passwd?raw), an attacker can bypass server.fs.deny restrictions and read arbitrary files from the server filesystem. The vulnerability exists because fetchModule does not enforce the same filesystem access controls as other Vite server endpoints. https://github.com/projectdiscovery/nuclei-templates/blob/main/javascript/cves/2026/CVE-2026-39363.yamlPOC Details
2https://github.com/vulhub/vulhub/blob/master/vite/CVE-2026-39363/README.mdPOC Details
AI-Generated POCPremium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-39363

登录查看更多情报信息。

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

CVE-2026-39364Vite has a `server.fs.deny` bypass with queries
CVE-2026-39365Vite has a Path Traversal in Optimized Deps `.map` Handling

IV. Related Vulnerabilities

V. Comments for CVE-2026-39363

Anonymous User
2026-04-08 09:23:07

1

Anonymous User
2026-04-08 09:23:45

<script>alert(1)</script>

Anonymous User
2026-04-08 09:24:11

<scr<script>ipt>alert(1)</scr</script>ipt>

Anonymous User
2026-04-08 09:24:38

\u003cscript\u003ealert(1)\u003c/script\u003e


Leave a comment