GHSA-9crc-q9x8-hgqq · 深刻度: critical · エコシステム: npm — Vitest allows Remote Code Execution when accessing a malicious website while Vitest API server is listening
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.
総合評価: CVE-2025-24964 は悪用リスクが高い(67.9/100)。CVSS 深刻度は重大。悪用される可能性が高い(EPSS 0.63%、45 パーセンタイル) 根拠: 公開エクスプロイトが 1 件参照されています(Exploit-DB)。 推奨対応: 公開エクスプロイトが確認されています。影響範囲の確認、緩和策の適用、パッチ適用を優先してください。
リスクは変動します。再評価に基づき、本ページの表示内容を更新しています。
| EDB-ID | ソース | 種別 | 公開 | リンク |
|---|---|---|---|---|
| — | nvd_ref | exploit_tag | Exploit-DB ↗ |
EPSS は日次で悪用されやすさの相対度合いを推定します。パーセンタイルは採点済み CVE の中での相対位置(高いほど相対的に深刻)を示します。
| # | 日付 | 旧 EPSS スコア | 新 EPSS スコア | Δ(新 − 旧) |
|---|---|---|---|---|
| 1 | 2026-06-15 | 1.94% | 0.63% | -1.31% |
| 2 | 2026-05-24 | 4.39% | 1.94% | -2.45% |
| 3 | 2026-03-25 | — | 4.39% | — |
EPSS の全履歴 (全 10 件)
この CVE の CVSS 指標。
| ベーススコア | バージョン | 深刻度 | ベクトル | 悪用しやすさ | 影響 | スコアの出典 |
|---|---|---|---|---|---|---|
| 9.6 | 3.1 | CRITICAL |
|
2.8 | 6.0 | [email protected] |
| 8.8 | 3.1 | HIGH |
|
2.8 | 5.9 | [email protected] |
GHSA-9crc-q9x8-hgqq · 深刻度: critical · エコシステム: npm — Vitest allows Remote Code Execution when accessing a malicious website while Vitest API server is listening
| ベンダー | 製品 | バージョン | 生の CPE |
|---|---|---|---|
| vitest.dev | vitest | <= 0.0.125 | cpe:2.3:a:vitest.dev:vitest:*:*:*:*:*:node.js:*:* |
| vitest.dev | vitest | >= 1.0.0, < 1.6.1 | cpe:2.3:a:vitest.dev:vitest:*:*:*:*:*:node.js:*:* |
| vitest.dev | vitest | >= 2.0.0, < 2.1.9 | cpe:2.3:a:vitest.dev:vitest:*:*:*:*:*:node.js:*:* |
| vitest.dev | vitest | >= 3.0.0, < 3.0.5 | cpe:2.3:a:vitest.dev:vitest:*:*:*:*:*:node.js:*:* |