vitest
5.1.1 · 18 Nov 2026MIT194M / weekRepositoryHomepagenpmAtom feed
3.2.7 is the newest release of 3.x.
In short
13 fixed
Security
2 advisories affect 3.2.4; 4.1.11 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
- ModerateVitest: Path Traversal / Arbitrary File Read via @vitest/mocker Redirect MockGHSA-82fw-gwwq-j7x9 · 8 Sep 2026Fixed in 4.1.11
Release note
Bug Fixes
Use correct path for optimisation of strip-literal
Print uint and buffer as a simple string
browser: Show a helpful error when spying on an export
cli:
vitest run --watchshould be watch-modecli: Use absolute path environment on Windows
cli: Throw error when
--shard x/<count>exceeds count of test filescoverage: Ignore SCSS in browser mode
deps: Update all non-major dependencies - in #8123
expect: Handle async errors in expect.soft
pool: Auto-adjust
minWorkerswhen onlymaxWorkersspecifiedreporter:
task.metashould be available in custom reporter's errorsrunner: Preserve handler wrapping on extend
ui: Ensure ui config option works correctly
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.