CVE-2025-24010 Vite allows any websites to send any requests to the development server and read the response

Medium 6.5 Published Updated

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.

Weakness: CWE-350, CWE-346, CWE-1385

Which versions are affected by CVE-2025-24010?

6 open source packages ship an affected version, including vite. It affects 1 product.

PackageAffectedFixed in
vite npmAll versions4.5.6
vite npmAll versions4.5.6
vite npmFrom 5.0.05.4.12
vite npmFrom 5.0.05.4.12
vite npmFrom 6.0.06.0.9
vite npmFrom 6.0.06.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.

Sources

Also known as CLSA-2026-1791806355, GHSA-vg6x-rcgg-rjx6, MINI-w53c-chvf-q48m.

Is CVE-2025-24010 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free