CVE-2026-39363: Vite Vulnerable to Arbitrary File Read via Vite Dev Server WebSocket
Affects viteSource GCVE Database
Not known to be exploited · public detection template (Nuclei) · CVSS 8.2 High : upgrade to 8.0.5 soon.
Data as of 13 Nov 2026, 21:05 UTC
- Patch
- Available – fixed in 8.0.5
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 7 Apr 2026
Detectable: evidence found.
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 13 Nov 2026.
What to do
Upgrade vite to 8.0.5.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Homebrewvitepkg:brew/viteOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
A patch is available in Vite version 8.0.5 that fixes this vulnerability. Users should upgrade affected versions (>=6.0.0 <8.0.5) to 8.0.5 or later. Alternatively, ensure the Vite dev server is not exposed to the network or disable the WebSocket feature by setting server.ws to false to mitigate the risk. The vendor advisory confirms the fix is available and should be applied.
Description
Vite versions from 6.0.0 up to but not including 8.0.5 contain a vulnerability in the dev server's WebSocket interface that allows arbitrary file read. This occurs because the server.fs check is not enforced on the fetchModule method accessible via WebSocket, enabling an attacker to retrieve arbitrary files if the dev server is exposed to the network and WebSocket is enabled. The vulnerability is fixed in version 8.0.5.
References
- github.com/vitejs/vite/security/advisories/GHSA-p9ff-h696-f583 (opens in a new tab)
- nvd.nist.gov/vuln/detail/CVE-2026-39363 (opens in a new tab)
- github.com/vitejs/vite/pull/22159 (opens in a new tab)
- github.com/vitejs/vite/commit/f02d9fde0b195afe3ea2944414186962fbbe41e0 (opens in a new tab)
- github.com/vitejs/vite (opens in a new tab)
- github.com/vitejs/vite/releases/tag/v6.4.2 (opens in a new tab)
- github.com/vitejs/vite/releases/tag/v7.3.2 (opens in a new tab)
- github.com/vitejs/vite/releases/tag/v8.0.5 (opens in a new tab)