vitest
5.1.1 · 18 Nov 2026MIT194M / weekRepositoryHomepagenpmAtom feed
4.1.12 is the newest release of 4.x.
In short
6 fixed
Security
1 advisory affects 4.1.2; 4.1.11 fixes them
- ModerateVitest: Path Traversal / Arbitrary File Read via @vitest/mocker Redirect MockGHSA-82fw-gwwq-j7x9 · 8 Sep 2026Fixed in 4.1.11
Release note
This release bumps Vitest's flatted version and removes version pinning to resolve flatted's CVE related issues (#9975).
Bug Fixes
Don't resolve
setupFilesfrom parent directoryEnsure sequential mock/unmock resolution
browser: Take failure screenshot if
toMatchScreenshotcan't capture a stable screenshotcoverage: Correct
coverageConfigDefaultsvalues and typespretty-format: Fix output limit over counting
Disable colors if agent is detected
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.