vitest
5.1.1 · 18 Nov 2026MIT194M / weekRepositoryHomepagenpmAtom feed
2.1.9 is the newest release of 2.x.
In short
1 new9 fixed
Security
2 advisories affect 2.0.4; 3.2.6 fixes them
- CriticalWhen Vitest UI server is listening, arbitrary file can be read and executedGHSA-5xrq-8626-4rwp · 1 Jun 2026Fixed in 3.2.6
- CriticalVitest allows Remote Code Execution when accessing a malicious website while Vitest API server is listeningGHSA-9crc-q9x8-hgqq · 4 Feb 2025Fixed in 2.1.9
Release note
Bug Fixes
One-line environment options
Resolve assets imported with
requirebrowser: Don't panic if @vitest/browser is installed outside of project root
browser: Set global filepath
browser: Allow preview and open in the editor screenshot error from ui
coverage: Global thresholds to include files from glob thresholds
coverage: Consistent type-only file handling
coverage: Ignore
*.ctsfilescoverage: Add
thresholds.<glob>.100optionspy: Fix
mockImplementationfor function overload and unions
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.