Vite
Vite Affected by Arbitrary File Read via Vite Dev Server WebSocket
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 8.0.0, < 8.0.5
- >= 7.0.0, < 7.3.2
- >= 6.0.0, < 6.4.2
Fixed in 8.0.5, 7.3.2, 6.4.2
- < 0.1.16
Fixed in 0.1.16
Mitigation
Upgrade vite to 8.0.5 or 7.3.2 or 6.4.2 or later.
Upgrade vite-plus to 0.1.16 or later.
References
- Vendor advisory github.com/vitejs/vite/security/advisories/GHS…
Timeline
Days relative to CVE publicationFirst public PoC 20 h after publication; not in CISA KEV. First PoC: Firebasky/CVE-2026-39363 (created 8 Apr 2026, found by us: backfilled).
PoC repositories
Found on GitHub.3 PoCs
PoCs 3
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| Firebasky/CVE-2026-39363 | 8 Apr 2026 +20 h | 7 | PoC |
| f4s1on/CVE-2026-39363 | 6 May 2026 +28 d | 0 | PoC |
| sunynov/CVE-2026-39363 | 4 Aug 2026 +119 d | 0 | PoC |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.
Other public exploits
Exploit-DB, Metasploit and nuclei count as public PoCs. Exploit-tagged references from the CVE record and NVD are links only. None of these are analysed by us.| Source | Title | Published | Found by us |
|---|---|---|---|
| nuclei template | nuclei template: Vite Dev Server - Arbitrary File Read | 9 Apr 2026 | 14 Nov 2026 |
PoC characteristics
What to hunt for in your logs · from 3 PoC reposGET /@fs/<root外绝对路径>
- Query
raw=- Ports
- 5173
- Seen in
- 1 repo: sunynov/CVE-2026-39363
- Evidence
- sunynov/CVE-2026-39363/README.md:100
GET /@vite/client
- Ports
- 5173
- PoC User-Agent
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36- Seen in
- 1 repo: Firebasky/CVE-2026-39363
- Evidence
- Firebasky/CVE-2026-39363/README.md:133 Firebasky/CVE-2026-39363/README.md:143 Firebasky/CVE-2026-39363/exp.py:120
Regex
Generated from PoC characteristics; not yet reviewed. Matches the request path and query.
(?i)^/@fs/<root外绝对路径>\?(?:.*&)?raw=
(?i)^/@vite/client(?:[?#].*)?$
Suricata
Template generated from PoC characteristics. Review before deploying.
alert http any any -> $HOME_NET [5173] (msg:"GG PoC-Monitor CVE-2026-39363 vitejs vite exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/@fs/<root外绝对路径>"; http.uri; content:"raw="; reference:url,poc.griffinguard.io/cve/CVE-2026-39363; classtype:web-application-attack; sid:9391610; rev:1;)
alert http any any -> $HOME_NET [5173] (msg:"GG PoC-Monitor CVE-2026-39363 vitejs vite exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/@vite/client"; reference:url,poc.griffinguard.io/cve/CVE-2026-39363; classtype:web-application-attack; sid:9836114; rev:1;)
Sigma
Template generated from PoC characteristics. Review before deploying.
title: vitejs vite exploit attempt (CVE-2026-39363)
id: gg-pocmon-cve-2026-39363-9391610
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-39363. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-39363
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/@fs/<root外绝对路径>'
cs-uri-query|contains|all:
- 'raw='
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: high
tags:
- attack.initial_access
- attack.t1190
- cve.2026.39363
title: vitejs vite exploit attempt (CVE-2026-39363)
id: gg-pocmon-cve-2026-39363-9836114
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-39363. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-39363
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/@vite/client'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: high
tags:
- attack.initial_access
- attack.t1190
- cve.2026.39363