vitest
5.1.1 · 18 Nov 2026MIT194M / weekRepositoryHomepagenpmAtom feed
4.1.12 is the newest release of 4.x.
In short
2 new10 fixed3 internal
Security
2 advisories affect 4.0.15; 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 4.1.0
- ModerateVitest: Path Traversal / Arbitrary File Read via @vitest/mocker Redirect MockGHSA-82fw-gwwq-j7x9 · 8 Sep 2026Fixed in 4.1.11
Release note
Experimental Features
cache: Add opt-out on a plugin level, fix internal root cache
reporters: Print import duration breakdown
Bug Fixes
Keep built-in id as is in bun and deno
Use
optimizeDeps.rolldownOptionsto fix depreated warning + fixssr.external: trueFix external behavior with
deps.optimizerbrowser: Run
toMatchScreenshotonly once when used withexpect.elementcoverage: Istanbul provider to not break source maps
expect: Preserve
currentTestNamein extended matcherspool: Terminate workers on
CTRL+cforceful exitsreporters: Show project in github reporter
spy: Do not mock overriden method, if parent was automocked
web-worker: MessagePort objects passed to Worker.postMessage work when clone === "native"
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.