CVE-2026-39363
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
vitenpm | >= 8.0.0, < 8.0.5 | 8.0.5 |
vitenpm | >= 7.0.0, < 7.3.2 | 7.3.2 |
vitenpm | >= 6.0.0, < 6.4.2 | 6.4.2 |
Affected products
12- osv-coords10 versionspkg:apk/chainguard/langfuse-3-workerpkg:apk/chainguard/langfuse-fips-3-workerpkg:apk/chainguard/vitepkg:apk/chainguard/vitess-22pkg:apk/chainguard/vitess-23pkg:apk/wolfi/langfuse-3-workerpkg:apk/wolfi/vitepkg:apk/wolfi/vitess-22pkg:apk/wolfi/vitess-23pkg:npm/vite
< 3.179.1-r3+ 9 more
- (no CPE)range: < 3.179.1-r3
- (no CPE)range: < 3.179.1-r2
- (no CPE)range: < 8.0.11-r0
- (no CPE)range: < 22.0.4-r9
- (no CPE)range: < 23.0.3-r11
- (no CPE)range: < 3.179.1-r3
- (no CPE)range: < 8.0.11-r0
- (no CPE)range: < 22.0.4-r9
- (no CPE)range: < 23.0.3-r11
- (no CPE)range: >= 8.0.0, < 8.0.5
Patches
Vulnerability mechanics
References
8- github.com/vitejs/vite/security/advisories/GHSA-p9ff-h696-f583nvdExploitVendor AdvisoryWEB
- github.com/advisories/GHSA-p9ff-h696-f583ghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2026-39363ghsaADVISORY
- github.com/vitejs/vite/commit/f02d9fde0b195afe3ea2944414186962fbbe41e0ghsaWEB
- github.com/vitejs/vite/pull/22159ghsaWEB
- github.com/vitejs/vite/releases/tag/v6.4.2ghsaWEB
- github.com/vitejs/vite/releases/tag/v7.3.2ghsaWEB
- github.com/vitejs/vite/releases/tag/v8.0.5ghsaWEB
News mentions
0No linked articles in our index yet.