CVE-2026-39363
Vite is a frontend tooling framework for JavaScript. From 6.0.0 to …
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 now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- github.com/vitejs/vite/security/advisories/GHSA-p9ff-h696-f583
- github.com/vitejs/vite/pull/22159
- github.com/vitejs/vite/commit/f02d9fde0b195afe3ea2944414186962fbbe41e0
- github.com/vitejs/vite/releases/tag/v6.4.2
- github.com/vitejs/vite/releases/tag/v7.3.2
- github.com/vitejs/vite/releases/tag/v8.0.5
- github.com/advisories/GHSA-p9ff-h696-f583
- nvd.nist.gov/vuln/detail/CVE-2026-39363
- nvd.nist.gov/vuln/detail/CVE-2026-39363
- cve.org/CVERecord?id=CVE-2026-39363
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.