# CVE-2026-39363: Vite Affected by Arbitrary File Read via Vite Dev Server WebSocket

- Severity: High 8.2 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 3.47%, higher than 89% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-04-06T18:03:24.000Z
- Modified: 2026-09-10T03:51:02.521Z
- Also known as: GHSA-p9ff-h696-f583
- Weaknesses: CWE-200, CWE-306, CWE-1220
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- vitejs vite: >= 8.0.0, < 8.0.5; >= 7.0.0, < 7.3.2; >= 6.0.0, < 6.4.2; from 6.0.0 up to 6.4.1; from 7.0.0 up to 7.3.1; from 8.0.0 up to 8.0.4
- vitejs vite-plus: < 0.1.16
- automation-gateway: no versions given (not affected: from 0:2.5.20260422-3.el8ap before *; from 0:2.5.20260422-3.el9ap before *)
- automation-platform-ui: no versions given (not affected: from 0:2.6.9-1.el9ap before *)
- ansible-automation-platform-tech-preview/mcp-server-rhel9: no versions given (not affected: from 1779783248 before *)
- ansible-automation-platform-27/gateway-rhel9: no versions given (not affected: from 1787218409 before *)
- rhacs-eng/release-main: no versions given
- automation-controller: no versions given
- automation-eda-controller: no versions given
- vite: no versions given
- podman-desktop-macos-1-0: no versions given
- podman-desktop-windows-1-0: no versions given
- redhat-user-workloads/bootc-ext: no versions given
- redhat-user-workloads/openshift-local-ext: no versions given
- redhat-user-workloads/rhel-ext: no versions given
- redhat-user-workloads/art-images: no versions given
- vite (npm): from 8.0.0 before 8.0.5; from 7.0.0 before 7.3.2; from 6.0.0 before 6.4.2
- voidzero vite+: up to 0.1.15

## Every score

- GitHub_M: CVSS:4.0 8.2 High `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`
- redhat-SADP: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- GitHub: CVSS:4.0 High `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`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`

## References

- <https://github.com/vitejs/vite/security/advisories/GHSA-p9ff-h696-f583> (exploit, vendor-advisory, web)
- <https://access.redhat.com/security/cve/CVE-2026-39363> (vdb-entry)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2456179> (issue-tracking)
- <https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-39363.json>
- <https://access.redhat.com/errata/RHSA-2026:24761> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:24762> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:24866> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:59153> (vendor-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-39363> (advisory)
- <https://github.com/vitejs/vite/pull/22159> (web)
- <https://github.com/vitejs/vite/commit/f02d9fde0b195afe3ea2944414186962fbbe41e0> (web)
- <https://github.com/vitejs/vite> (package)
- <https://github.com/vitejs/vite/releases/tag/v6.4.2> (web)
- <https://github.com/vitejs/vite/releases/tag/v7.3.2> (web)
- <https://github.com/vitejs/vite/releases/tag/v8.0.5> (web)

## Sources

- CVE List: [CVE-2026-39363](https://www.cve.org/CVERecord?id=CVE-2026-39363), CVE Terms of Use, modified 2026-08-25
- GitHub Advisory Database: [GHSA-p9ff-h696-f583](https://github.com/advisories/GHSA-p9ff-h696-f583), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-39363](https://nvd.nist.gov/vuln/detail/CVE-2026-39363), Public domain, modified 2026-08-25

---

Page: https://cve.day/CVE-2026-39363 · Whole record: https://cve.day/CVE-2026-39363.json · Rebuilt by cve.day 2026-11-25T22:59:18.161Z
