CVE-2025-24010 Vite allows any websites to send any requests to the development server and read the response
Attackers can send arbitrary requests to the Vite development server and read responses due to missing Origin validation and permissive CORS settings.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2025-24010?
CVE-2025-24010 is a medium-severity missing authorization vulnerability in vitejs vite, published on 20 Jan 2025. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
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.
Which versions are affected by CVE-2025-24010?
6 open source packages ship an affected version, including vite. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
vite npm | All versions | 4.5.6 |
vite npm | All versions | 4.5.6 |
vite npm | From 5.0.0 | 5.4.12 |
vite npm | From 5.0.0 | 5.4.12 |
vite npm | From 6.0.0 | 6.0.9 |
vite npm | From 6.0.0 | 6.0.9 |
Products include Vitejs Vite.
How do I fix CVE-2025-24010?
Upgrade vite to a fixed version for your release line: 4.5.6, 5.4.12 or 6.0.9.
Upgrade, and check permissions on every request on the server, not only in the interface. More about Missing authorization.
Is CVE-2025-24010 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-24010 exists.
Other vulnerabilities in vitejs vite
- CVE-2025-31125 Vite Vitejs Improper Access Control
- CVE-2026-53571 Vite: `server.fs.deny` bypass on Windows alternate paths
- CVE-2026-39363 Vite Affected by Arbitrary File Read via Vite Dev Server WebSocket
- CVE-2026-39364 Vite has a `server.fs.deny` bypass with queries
- CVE-2024-23331 Vite dev server option `server.fs.deny` can be bypassed when hosted on case-insensitive filesystem
Sources
Also known as CLSA-2026-1791806355, GHSA-vg6x-rcgg-rjx6, MINI-w53c-chvf-q48m.