Vulnerability · Published Jan 20, 2025 · Assigned by GitHub_M
CVE-2025-24010Vite allows any websites to send any requests to the development server and read the response
Medium 6.5
In plain English
A medium-severity security flaw in vite from vitejs. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 23% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS 3.1)6.5Medium
Exploit odds (30 days)0.3%top 77.5% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| npm | vite | 6.0.9 | GHSA-vg6x-rcgg-rjx6 |
| npm | vite | 5.4.12 | GHSA-vg6x-rcgg-rjx6 |
| npm | vite | 4.5.6 | GHSA-vg6x-rcgg-rjx6 |
Affected products (as reported)
Weakness: CWE-346, CWE-350, CWE-1385 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
References
- https://github.com/vitejs/vite/security/advisories/GHSA-vg6x-rcgg-rjx6 x_refsource_CONFIRM