CVE-2025-24010 Details
Description
Vite is a frontend tooling framework for javascript. Vite allowed any websites to send any requests to the development server and read the response due to default CORS settings and lack of validation on the Origin header for WebSocket connections. This vulnerability is fixed in 6.0.9, 5.4.12, and 4.5.6.
A vulnerability in Vite, a frontend tooling framework for JavaScript, allows any website to send requests to the Vite development server and read the responses. This issue arises from default Cross-Origin Resource Sharing (CORS) settings that permit all origins and a lack of validation on the Origin header for WebSocket connections. The vulnerability affects Vite versions 6.0.0 through 6.0.8, 5.0.0 through 5.4.11, and 4.0.0 through 4.5.5. It is important to note that this vulnerability can be exploited even when the Vite development server is running locally and not exposed to the network.
Users can upgrade to Vite versions 6.0.9, 5.4.12, or 4.5.6, depending on their current version. For those using the backend integration feature, it's important to specify the origin of the backend server in the Vite configuration. If a reverse proxy is used, the hostname must be added to the server.allowedHosts option. Users accessing the development server via a domain other than localhost should also update the server.allowedHosts option. For plugins that connect to the WebSocket server, upgrading Vite or adjusting the plugin code may be necessary.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jan 21, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/vitejs/vite/security/advisories/GHSA-vg6x-rcgg-rjx6 | [email protected] | ExploitMitigationThird Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-1385 | Missing Origin Validation in WebSockets | [email protected] |
| CWE-346 | Origin Validation Error | [email protected] |
| CWE-350 | Reliance on Reverse DNS Resolution for a Security-Critical Action | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| vitejs vite | < 4.5.5 >= 5.0.0, < 5.4.12 >= 6.0.0, < 6.0.9 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Sep 19, 2025 | Initial Analysis | [email protected] |
| Jan 20, 2025 | New CVE Received | [email protected] |