CVE-2025-24010Vitejs Vite
Medium 6.5 No auth needed
Follow: this CVE · Vitejs · Vitejs Vite We alert you by email or Slack (account required).
- Priority
- 54
- CVSS 3.1
- 6.5
- EPSS
- —
- Auth required
- No
- Published
- Jan 20, 2025
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: no · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
What happens
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.
What to do
- Apply the vendor's security update for Vite.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| npm | vite |
≥ 6.0.0 < 6.0.9 |
6.0.9 |
npm install vite@6.0.9 |
| npm | vite |
≥ 5.0.0 < 5.4.12 |
5.4.12 |
npm install vite@5.4.12 |
| npm | vite |
< 4.5.6 |
4.5.6 |
npm install vite@4.5.6 |
Per OSV / GitHub Advisories (GHSA-vg6x-rcgg-rjx6). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| vitejs | vite | < 4.5.5 |
| vitejs | vite | ≥ 5.0.0 < 5.4.12 |
| vitejs | vite | ≥ 6.0.0 < 6.0.9 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Exploit Mitigation Third Party Advisory