vitest
5.1.1 · 18 Nov 2026MIT194M / weekRepositoryHomepagenpmAtom feed
Upgrading vitest From 4.0.18 to 4.1.0
1 release in betweenevery note read
Before you upgrade
Tick each one off as you go- Breaking4.1.0
- Deprecated4.1.0
- Deprecated4.1.0
- Deprecated4.1.0
Security
1 advisory still affects 4.1.0
- Vitest: Path Traversal / Arbitrary File Read via @vitest/mocker Redirect Mockmoderate · GHSA-82fw-gwwq-j7x9
Upgrading to 4.1.11 clears it.
Fixes 1 advisory affecting 4.0.18
- When Vitest UI server is listening, arbitrary file can be read and executedcritical · GHSA-5xrq-8626-4rwp
Release by release
- Breaking
browser: Remove
--remote-debugging-addressfrom chrome args - Deprecated
Deprecate several vitest/* entry points
- Deprecated
Deprecate unused types in matcher context
- Deprecated
Deprecate
toBe*spy assertions in favor oftoHaveBeen*(andtoThrowError)
- Breaking
2 internal lines (docs, tests, tooling) left out.
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.