# vitest (npm) vulnerabilities

3 known vulnerabilities (2 critical, 1 medium), with the versions each affects and the releases that fix them.

## At a glance

- Latest release: 5.1.0 (Nov 2, 2026): no advisory affects it
- Newest unaffected release: 5.1.0 (Nov 2, 2026), the latest release
- Weekly downloads: 169.7M
- Dependents: 182
- Releases: 491 since 0.0.0 (Dec 3, 2021)
- Registry: https://www.npmjs.com/package/vitest
- Releases read: Nov 8, 2026

## Version timeline

Affected versions per advisory, in version order:

- CVE-2026-84373: 2.1.0 to 4.1.10 (4.1.11 is outside it); 5.0.0-beta.1 to 5.0.0-rc.1 (5.0.0-rc.2 is outside it)
- CVE-2026-47429: 0.0.0 to 3.2.5 (3.2.6 is outside it); 4.0.0 to 4.1.0-beta.6 (4.1.0 is outside it)
- CVE-2025-24964: 0.0.0 to 0.0.125 (0.0.126 is outside it); 1.0.0 to 1.6.0 (1.6.1 is outside it); 2.0.0 to 2.1.8 (2.1.9 is outside it); 3.0.0 to 3.0.4 (3.0.5 is outside it)

## Advisories (3)

### [CVE-2026-84373](https://cve.now/CVE-2026-84373): Vitest: Path Traversal / Arbitrary File Read via @vitest/mocker Redirect Mock

- Severity: Medium 5.9
- Published: Sep 1, 2026
- Affected: from 2.1.0, fixed in 4.1.11; from 5.0.0-beta.1, fixed in 5.0.0-rc.2.
- Fixed in 4.1.11 (released Aug 18, 2026, 14 days before disclosure) and 5.0.0-rc.2 (released Aug 17, 2026, 15 days before disclosure).
- The latest release, 5.1.0, is not affected.
- 42% of vitest downloads last week were affected versions (77.6M).

### [CVE-2026-47429](https://cve.now/CVE-2026-47429): Vitest: Arbitrary file can be read and executed when Vitest UI server is listening

- Severity: Critical 9.8
- Published: Jul 14, 2026
- Affected: from 4.0.0, fixed in 4.1.0; fixed in 3.2.6.
- Fixed in 3.2.6 (released Jun 1, 2026, 43 days before disclosure) and 4.1.0 (released Mar 12, 2026, 124 days before disclosure).
- The latest release, 5.1.0, is not affected.
- 20% of vitest downloads last week were affected versions (37.6M).

### [CVE-2025-24964](https://cve.now/CVE-2025-24964): Remote Code Execution when accessing a malicious website while Vitest API server is listening

- Severity: Critical 9.7
- Published: Feb 4, 2025
- Affected: from 1.0.0, fixed in 1.6.1; from 2.0.0, fixed in 2.1.9; from 3.0.0, fixed in 3.0.5; through 0.0.125.
- Fixed in 1.6.1 (released Feb 3, 2025, 1 day before disclosure), 2.1.9 (released Feb 3, 2025, 1 day before disclosure) and 3.0.5 (released Feb 3, 2025, 1 day before disclosure).
- The latest release, 5.1.0, is not affected.
- 1.7% of vitest downloads last week were affected versions (3.2M).

---

Source: cve.now
Built by [Sazabi](https://www.sazabi.com/?utm_source=cve-now&utm_medium=markdown), AI-native observability and security: automatic issue detection, plain-language log search and live dashboards.
Page: https://cve.now/packages/npm/vitest
Site guide for agents: https://cve.now/llms.txt
Uses NVD data; not endorsed by NVD.
