Skip to content
OpenAdvisories
High · 8.2 Scanner template Public exploit CVE-2026-39363 GHSA-p9ff-h696-f583

Vite Affected by Arbitrary File Read via Vite Dev Server WebSocket

Published Apr 7, 2026 · Updated Aug 25, 2026 · Assigned by GitHub_M

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.

Affected products

VendorProductAffectedFixed
vitejs vite >= 8.0.0, < 8.0.5, >= 7.0.0, < 7.3.2, >= 6.0.0, < 6.4.2 —
vitejs vite-plus < 0.1.16 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Red Hat Ansible Automation Platform Inside 2 python3.12-click 8.3.3-1.el8ap RHSA-2026:24762, RHSA-2026:24761
Red Hat Ansible Automation Platform Inside 2 python3.12-cryptography 46.0.7-1.el8ap RHSA-2026:24762, RHSA-2026:24761
Red Hat Ansible Automation Platform Inside 2 receptor 1.6.5-1.el8ap RHSA-2026:24762, RHSA-2026:24761
Red Hat Ansible Automation Platform Inside 2 receptorctl 1.6.5-1.el9ap RHSA-2026:24762
Red Hat Ansible Automation Platform Developer 2 automation-controller +1 4.7.12-1.el9ap RHSA-2026:24762
Red Hat Ansible Automation Platform Developer 2 python3-click 8.3.3-1.el10ap RHSA-2026:24762
Red Hat Ansible Automation Platform Developer 2 python3.12-click 8.3.3-1.el8ap RHSA-2026:24762, RHSA-2026:24761
Red Hat Ansible Automation Platform Developer 2 python3.12-cryptography 46.0.7-1.el8ap RHSA-2026:24762, RHSA-2026:24761
Red Hat Ansible Automation Platform Developer 2 receptor 1.6.5-1.el8ap RHSA-2026:24762, RHSA-2026:24761
Red Hat Ansible Automation Platform Developer 2 receptorctl 1.6.5-1.el9ap RHSA-2026:24762
Red Hat Ansible Automation Platform 2 automation-controller +3 4.7.12-1.el9ap RHSA-2026:24762
Red Hat Ansible Automation Platform 2 automation-controller-venv-tower 4.6.29-2.el8ap RHSA-2026:24762, RHSA-2026:24761
Red Hat Ansible Automation Platform 2 automation-gateway-proxy 2.6.14-3.el9ap RHSA-2026:24762
Red Hat Ansible Automation Platform 2 automation-gateway-proxy-server 2.5.10-6.el8ap RHSA-2026:24762, RHSA-2026:24761
Red Hat Ansible Automation Platform 2 automation-gateway-server 2.5.20260422-3.el8ap RHSA-2026:24761
Red Hat Ansible Automation Platform 2 automation-platform-ui 2.6.9-1.el9ap RHSA-2026:24762
Red Hat Ansible Automation Platform 2 python3-click 8.3.3-1.el10ap RHSA-2026:24762
Red Hat Ansible Automation Platform 2 python3.12-click 8.3.3-1.el8ap RHSA-2026:24762, RHSA-2026:24761
Red Hat Ansible Automation Platform 2 python3.12-cryptography 46.0.7-1.el8ap RHSA-2026:24762, RHSA-2026:24761
Red Hat Ansible Automation Platform 2 python3.12-pillow 12.2.0-1.el8ap RHSA-2026:24762, RHSA-2026:24761
Red Hat Ansible Automation Platform 2 receptor 1.6.5-1.el8ap RHSA-2026:24762, RHSA-2026:24761
Red Hat Ansible Automation Platform 2 receptorctl 1.6.5-1.el9ap RHSA-2026:24762

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling langfuse-3-compat 3.225.7-r6 —
Wolfi rolling langfuse-3-worker 3.179.1-r3 —
Wolfi rolling vite 8.0.11-r0 —
Wolfi rolling vitess-23 23.0.3-r11 —

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 3 repositories

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Automated scanner template

A ready-made Nuclei template detects this vulnerability automatically. Vulnerabilities with public scanner templates are typically probed across the internet soon after the template appears — exposed systems should be patched first.

Source: projectdiscovery/nuclei-templates (MIT) — updated daily. Only links are listed.

Affected packages

EcosystemPackageAffectedFixedRecord
npm vite >= 8.0.0, < 8.0.5 8.0.5 GHSA-p9ff-h696-f583
npm vite >= 7.0.0, < 7.3.2 7.3.2 GHSA-p9ff-h696-f583
npm vite >= 6.0.0, < 6.4.2 6.4.2 GHSA-p9ff-h696-f583

Advisories 2

References