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
15- osv-coords13 versionspkg:apk/chainguard/gitlab-rails-ce-19.1pkg:apk/chainguard/gitlab-rails-ce-fips-19.1pkg:apk/chainguard/gitlab-rails-ce-fips-19.2pkg: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
< 19.1.2-r2+ 12 more
- (no CPE)range: < 19.1.2-r2
- (no CPE)range: < 19.1.1-r3
- (no CPE)range: < 19.2.1-r1
- (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
14- 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
- access.redhat.com/errata/RHSA-2026:24761nvd
- access.redhat.com/errata/RHSA-2026:24762nvd
- access.redhat.com/errata/RHSA-2026:24866nvd
- access.redhat.com/security/cve/CVE-2026-39363nvd
- bugzilla.redhat.com/show_bug.cginvd
- security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-39363.jsonnvd
News mentions
0No linked articles in our index yet.