csirt@kutim:~/threat-intel/cve/CVE-2025-24964

Katalog CVE

CVSS 8.8 · High EPSS 0,68%

Kerentanan Missing Origin Validation in WebSockets pada vitest.dev vitest. Skor CVSS 3.1 8.8 (High) menurut NVD.

Deskripsi (NVD)

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.

Rincian

Terbit di NVD
4 Februari 2025
Terakhir diubah
17 Juni 2026
Status NVD
Analyzed
CVSS 3.1
8.8 (High), sumber NVD
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H · uraikan di kalkulator
Jenis kelemahan (CWE)
CWE-1385: Missing Origin Validation in WebSockets
EPSS (30 hari)
0,68% peluang dieksploitasi; lebih tinggi dari 51,1% CVE lain

Produk dan versi terdampak

VendorProdukVersi terdampak
vitest.dev vitest Semua versi hingga 0.0.125
vitest.dev vitest Versi 1.0.0 hingga sebelum 1.6.1
vitest.dev vitest Versi 2.0.0 hingga sebelum 2.1.9
vitest.dev vitest Versi 3.0.0 hingga sebelum 3.0.5

> Data dari konfigurasi CPE di NVD.

Referensi dan perbaikan

Sumber: NVD · CVE.org · EPSS. Halaman ini disusun otomatis dari data tersebut; pembaruan terakhir 5 Okt 2026, 20:11 WITA. Kalau sistem di Perangkat Daerah memakai produk ini dan butuh bantuan, laporkan lewat kanal pelaporan.