CVE-2025-24964: critical vulnerability in vitest-dev vitest
Remote Code Execution when accessing a malicious website while Vitest API server is listening
Published · Updated
E-mail alert when it lands in KEV, gets a public PoC or its score goes up.
No sign of exploitation. No public exploitation artifact known so far.
Vitest's API server is vulnerable to attacks from malicious websites when enabled, allowing hackers to execute arbitrary code on your computer by modifying test files and running them without your knowledge.
Vitest API server lacks Origin header validation and authorization mechanisms on its WebSocket endpoint, making it susceptible to Cross-site WebSocket hijacking (CSWSH). Attackers can exploit saveTestFile and rerun APIs to inject and execute arbitrary code in the test environment when a user visits a compromised website while the API server is active.
In the same product, most dangerous first.