Install
vitest
Next generation testing framework powered by Vite
5.1.2Latest, 25 Nov 2026
809MDownloads, last month
0Advisories on the latest
3Advisories, all versions
MITLicence
17KStars
Source · Homepage · Ask AI Mode · · Markdown
Known advisories
| Severity | Advisory | Fix | Published |
|---|---|---|---|
| Moderate | Vitest: Path Traversal / Arbitrary File Read via @vitest/mocker Redirect Mock CVE-2026-84373 | Fixed in 4.1.11, 5.0.0-rc.2 | 8 Sep 2026 |
| Critical | When Vitest UI server is listening, arbitrary file can be read and executed CVE-2026-47429 | Fixed in 4.1.0, 3.2.6 | 1 Jun 2026 |
| Critical | Vitest allows Remote Code Execution when accessing a malicious website while Vitest API server is listening CVE-2025-24964 | Fixed in 1.6.1, 2.1.9, 3.0.5 | 4 Feb 2025 |
In the news
- Preventing Cross-Account Cache Leaks and Hardening TTL Parsing in JavaScript (With Vitest) dev.to, 3 Dec 2026
- Getting an AI Agent to Write Tests That Actually Catch Bugs in 2026: My 8-Step Mac Workflow (Vitest, fast-check, Stryker) dev.to, 2 Dec 2026
- How I cut a Vitest run from 5 minutes to 19 seconds with a per-file result cache dev.to, 1 Dec 2026
- Finding Duplicate Vitest Tests Without Running Them: What's New in VitestDedup dev.to, 23 Nov 2026
- Jest, Vitest, or node:test? Fixing "Cannot use import statement outside a module" by Choosing the Right Runner dev.to, 22 Nov 2026
On Hacker News
- Vitest Browser Mode Guide 72 points, 8 comments, 25 Dec 2025
- Jest/Vitest interactive course (runs in the browser) 52 points, 13 comments, 24 Jun 2026
- Vitest vs. Jest 44 points, 37 comments, 26 Nov 2024
- Vitest, fast unit-test framework powered by Vite 25 points, 3 comments, 29 Dec 2021
Sources: npm, deps.dev (CC BY 4.0), OSV. Last checked 4 Dec 2026.