CVE-2026-39363Vitejs Vite
High 8.2 No auth needed
Follow: this CVE · Vitejs · Vitejs Vite We alert you by email or Slack (account required).
- Priority
- 64
- CVSS 4.0
- 8.2
- EPSS
- —
- Auth required
- No
- Published
- Apr 7, 2026
- Updated
- Aug 25, 2026
- Category
- Application · Cross-platform
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: yes · Technical impact: partial
- Vector
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
What happens
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.
What to do
- Apply the vendor's security update for Vite.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| npm | vite |
≥ 8.0.0 < 8.0.5 |
8.0.5 |
npm install vite@8.0.5 |
| npm | vite |
≥ 7.0.0 < 7.3.2 |
7.3.2 |
npm install vite@7.3.2 |
| npm | vite |
≥ 6.0.0 < 6.4.2 |
6.4.2 |
npm install vite@6.4.2 |
Per OSV / GitHub Advisories (GHSA-p9ff-h696-f583). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| vitejs | vite | ≥ 6.0.0 ≤ 6.4.1 |
| vitejs | vite | ≥ 7.0.0 ≤ 7.3.1 |
| vitejs | vite | ≥ 8.0.0 ≤ 8.0.4 |
| voidzero | vite+ | ≤ 0.1.15 |
Official advisories
- Red Hat Security Advisory: Red Hat Ansible Automation Platform 2.6 Product Security and Bug Fix Update · Red Hat · RHSA-2026:24762 · Jun 10, 2026 High
- Red Hat Security Advisory: Red Hat Ansible Automation Platform 2.5 Product Security and Bug Fix Update · Red Hat · RHSA-2026:24761 · Jun 10, 2026 High
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.