vitest Known Vulnerabilities & Fixes
vitest has 2 known security vulnerabilities in npm (Node.js). Upgrade to version 4.1.0 or later to resolve all known issues. Data sourced from OSV, enriched with EPSS exploit probability and CISA KEV.
Low Immediate Risk
No actively exploited vulnerabilities detected. Monitor and update in your next maintenance window.
Recommended safe version: 4.1.0
Upgrading to 4.1.0 or later resolves all 2 known vulnerabilities in vitest. Run: npm install vitest@4.1.0
Is vitest in your project?
Check if you're affected and upgrade to 4.1.0 to stay secure.
Security Summary
- 6 affected version ranges have been identified across these 2 advisories.
- 100% of known issues have a published fixed version.
- Remediation: npm update vitest
Vulnerabilities
2 unique vulnerabilities — sorted by exploitation risk (KEV → EPSS → CVSS). Click a CVE/GHSA ID for full details. First disclosed Feb 4, 2025, most recently Jun 1, 2026 (482 days apart).
| CVE / GHSA | Severity | Affected | Fixed In |
|---|---|---|---|
| CVE-2026-47429 When Vitest UI server is listening, arbitrary file can be read and executed | CRITICAL | All versions | 4.1.0, 3.2.6 |
| CVE-2025-24964 Vitest allows Remote Code Execution when accessing a malicious website while Vitest API server is listening | CRITICAL | All versions | 1.6.1, 2.1.9, 3.0.5 |
About This Data
Vulnerability data for vitest is sourced from the Open Source Vulnerability (OSV) database, aggregating reports from GitHub Advisory Database, NIST NVD, and ecosystem-specific sources.
CVSS (Common Vulnerability Scoring System) scores reflect exploitability and impact. EPSS (Exploit Prediction Scoring System) scores indicate the probability of exploitation within the next 30 days. Vulnerabilities marked with are listed in the CISA Known Exploited Vulnerabilities (KEV) catalog.
Related npm (Node.js) Packages
Other packages in this ecosystem, ranked by shared vulnerabilities where available.
Check Your Dependencies
Scan your project to check if you're using a vulnerable version of vitest.