- Description
- Vitest is a testing framework powered by Vite. Affected versions are subject to arbitrary remote Code Execution when accessing a malicious website while Vitest API server is listening by Cross-site WebSocket hijacking (CSWSH) attacks. When `api` option is enabled (Vitest UI enables it), Vitest starts a WebSocket server. This WebSocket server did not check Origin header and did not have any authorization mechanism and was vulnerable to CSWSH attacks. This WebSocket server has `saveTestFile` API that can edit a test file and `rerun` API that can rerun the tests. An attacker can execute arbitrary code by injecting a code in a test file by the `saveTestFile` API and then running that file by calling the `rerun` API. This vulnerability can result in remote code execution for users that are using Vitest serve API. This issue has been patched in versions 1.6.1, 2.1.9 and 3.0.5. Users are advised to upgrade. There are no known workarounds for this vulnerability.
- Source
- security-advisories@github.com
- NVD status
- Received
CVSS 3.1
- Type
- Secondary
- Base score
- 9.6
- Impact score
- 6
- Exploitability score
- 2.8
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
- Severity
- CRITICAL
- security-advisories@github.com
- CWE-1385
- Hype score
- Not currently trending
Vitest の RCE 脆弱性 CVE-2025-24964 (CVSS 9.7) が FIX:PoC も提供! https://t.co/7IUwEtB0N1 このブログでは初登場の Vitest なので、GItHub で調べたところ、「Vite を搭載した超高速ユニットテストフレームワーク」と解説されていました。ご利用のチームは、ご確認ください。 #CVE202524964… https://t.co/DpGAtNjuOh
@iototsecnews
17 Feb 2025
20 Impressions
0 Retweets
0 Likes
0 Bookmarks
0 Replies
0 Quotes
Threat Alert: Vitest Vulnerability Exposes Developers to Remote Code Execution - CVE-2025-2496 CVE-2025-24964 Severity: 🔴 High Maturity: 💢 Emerging Learn more: https://t.co/SSvEQOh1sk #CyberSecurity #ThreatIntel #InfoSec
@fletch_ai
8 Feb 2025
47 Impressions
0 Retweets
0 Likes
0 Bookmarks
0 Replies
0 Quotes
[CVE-2025-24964: CRITICAL] Critical Vitest vulnerability patched in versions 1.6.1, 2.1.9, and 3.0.5, enabling remote code execution via Vitest server WebSocket. Upgrade advised for all users.#cybersecurity,#vulnerability https://t.co/bkP33EbWGH https://t.co/8wgEm8oa9i
@CveFindCom
4 Feb 2025
44 Impressions
0 Retweets
0 Likes
0 Bookmarks
0 Replies
0 Quotes
CVE-2025-24964 Vitest is a testing framework powered by Vite. Affected versions are subject to arbitrary remote Code Execution when accessing a malicious website while Vitest API se… https://t.co/Y6ZOCDFSYn
@CVEnew
4 Feb 2025
354 Impressions
0 Retweets
1 Like
0 Bookmarks
0 Replies
0 Quotes