vitest
5.1.1 · 18 Nov 2026MIT194M / weekRepositoryHomepagenpmAtom feed
Upgrading vitest From 2.1.0 to 2.1.9
9 releases in betweenevery note read
Before you upgrade
Tick each one off as you go- Breaking2.1.7
- Breaking2.1.5
- Deprecated2.1.3
- Deprecated2.1.3
Security
2 advisories still affect 2.1.9
- When Vitest UI server is listening, arbitrary file can be read and executedcritical · GHSA-5xrq-8626-4rwp
- Vitest: Path Traversal / Arbitrary File Read via @vitest/mocker Redirect Mockmoderate · GHSA-82fw-gwwq-j7x9
Upgrading to 4.1.11 clears them.
Fixes 1 advisory affecting 2.1.0
- Vitest allows Remote Code Execution when accessing a malicious website while Vitest API server is listeningcritical · GHSA-9crc-q9x8-hgqq
Release by release
- Security
- Security
- Fixed
Backport #7317 to v2
- Fixed
(backport #7340 to v2) restrict served files from
/__screenshot-error
- Fixed
Support Node 21
- Fixed
- New
Support Vite 6
- New
- Breaking
ui: Remove crossorigin attributes for same origin assets
- New
Limit workspace project concurrency to available cores
- Fixed
dangerouslyIgnoreUnhandledErrorswithout base reporter - Fixed
Capture
unhandledRejectioneven when base reporter is not used
- Breaking
- New
browser: Allow custom HTML path, respect plugins
transformIndexHtml - New
Use
hashto replacecreateHash - Fixed
windows: Don't normalize drive case letter in root
- Fixed
browser: Fix default browser port
- New
- Deprecated
vitest: Deprecate UserConfig in favor of ViteUserConfig
- Deprecated
vitest: Deprecate old task types and node-reliant types
- New
Reuse full name in reported tasks, update generator types
- Fixed
Fix error diff of
toBeNaN, toBeUndefined, toBeNull, toBeTruthy, toBeFalsy
- Deprecated
- Fixed
Move
Vitest.setServerto postconfigureServerhook to enable import analysis for workspace config loading - Fixed
benchmark: Clear
BenchmarkResult.samplesarray to reduce memory usage - Fixed
browser: Fix dynamic import inside worker
- Fixed
browser: Fix browser mock factory event race condition
- Fixed
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.