SECURITY & CVE TRACK RECORD

Vitest Security Advisories, CVEs & Patched Versions

Historical vulnerability disclosures, CVSS severity ratings, affected version ranges, and verified patch releases for Vitest.

Total Tracked Advisories
4
4 distinct CVE numbers
Critical & High Severity
2
50% of all disclosures
Latest Security Fix
4.1.11
Read patch changelog →
Security Posture Status
Active Patches
Deterministic OSV.dev telemetry
Tracked Vulnerability Timeline (4)
🛡️ CVE-2026-84373 GHSA-82fw-gwwq-j7x9 Sep 08, 2026
MEDIUM (CVSS 5.9)

Vitest: Path Traversal / Arbitrary File Read via @vitest/mocker Redirect Mock

## Summary `@vitest/mocker` registers a redirect mock's target path without validating it against the dev server's file-serving allowlist. An attacker who can reach the dev server's WebSocket can register a redirect mock pointing outside the project root; when the mocked modul...

Vulnerable Range: 2.1.0 -> 4.1.11, 2.1.0 -> 4.1.11, 5.0.0-beta.1 -> 5.0.0-rc.2
Official Advisory Source ↗
🛡️ CVE-2026-47429 GHSA-5xrq-8626-4rwp Jun 01, 2026
CRITICAL (CVSS 9.8)

When Vitest UI server is listening, arbitrary file can be read and executed

### Summary Arbitrary file can be read on Windows when Vitest UI server is listening, especially when exposed to the network. ### Impact Only users that match either of the following conditions are affected: - explicitly exposes the Vitest UI server to the network (using `--...

Vulnerable Range: 4.0.0 -> 4.1.0, 0 -> 3.2.6
Fix Version: 4.1.0 (Read Notes →)
Official Advisory Source ↗
🛡️ CVE-2025-24964 GHSA-9crc-q9x8-hgqq Feb 04, 2025
CRITICAL (CVSS 9.6)

Vitest allows Remote Code Execution when accessing a malicious website while Vitest API server is listening

### Summary Arbitrary remote Code Execution when accessing a malicious website while Vitest API server is listening by Cross-site WebSocket hijacking (CSWSH) attacks. ### Details When [`api` option](https://vitest.dev/config/#api) is enabled (Vitest UI enables it), Vitest sta...

Vulnerable Range: 1.0.0 -> 1.6.1, 2.0.0 -> 2.1.9, 3.0.0 -> 3.0.5
Fix Version: 1.6.1 (Read Notes →)
Official Advisory Source ↗