---
id: CVE-2026-39363
title: Vite is a frontend tooling framework for JavaScript
summary: >-
  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
  custo…
severity: high
cvss: 7.5
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N'
cwe:
  - CWE-200
  - CWE-306
  - CWE-1220
vendor: vitejs
product: vite
affected:
  - 'vite >= 6.0.0, <= 6.4.1'
  - 'vite >= 7.0.0, <= 7.3.1'
  - 'vite >= 8.0.0, <= 8.0.4'
  - vite+ <= 0.1.15
published: '2026-04-07'
updated: '2026-08-04'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-39363'
references:
  - url: 'https://github.com/vitejs/vite/security/advisories/GHSA-p9ff-h696-f583'
    label: security-advisories@github.com
  - url: 'https://access.redhat.com/errata/RHSA-2026:24761'
    label: 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
  - url: 'https://access.redhat.com/errata/RHSA-2026:24762'
    label: 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
  - url: 'https://access.redhat.com/errata/RHSA-2026:24866'
    label: 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
  - url: 'https://access.redhat.com/security/cve/CVE-2026-39363'
    label: 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2456179'
    label: 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
  - url: 'https://github.com/vitejs/vite/security/advisories/GHSA-p9ff-h696-f583'
    label: 134c704f-9b21-4f2e-91b3-4a467353bcc0
  - url: >-
      https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-39363.json
    label: 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
tags:
  - nvd
  - exploit-available
epss: 0.02619
epssPercentile: 0.84822
ingestedAt: '2026-08-05T11:47:24.395Z'
exploits:
  github: 3
  githubRepos:
    - 'https://github.com/Firebasky/CVE-2026-39363'
    - 'https://github.com/f4s1on/CVE-2026-39363'
    - 'https://github.com/sunynov/CVE-2026-39363'
  nuclei:
    - javascript/cves/2026/CVE-2026-39363
  checkedAt: '2026-09-26T09:05:42.865Z'
exploitAvailable: true
---

## Overview

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

- `vite >= 6.0.0, <= 6.4.1`
- `vite >= 7.0.0, <= 7.3.1`
- `vite >= 8.0.0, <= 8.0.4`
- `vite+ <= 0.1.15`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
