vitest
5.1.1 · 18 Nov 2026MIT194M / weekRepositoryHomepagenpmAtom feed
Upgrading vitest From 2.0.5 to 2.1.0
1 release in betweenevery note read
- 4
- changes to make
- 0
- advisories fixed
- 17
- new
- 33
- fixes
Before you upgrade
Tick each one off as you go- Breaking2.1.0
- Breaking2.1.0
- Breaking2.1.0
- Breaking2.1.0
Security
3 advisories still affect 2.1.0
- 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
- Vitest allows Remote Code Execution when accessing a malicious website while Vitest API server is listeningcritical · GHSA-9crc-q9x8-hgqq
Upgrading to 4.1.11 clears them.
Release by release
- Breaking
workspace: Correctly resolve workspace globs and file paths
- Breaking
workspace: This changes how the custom glob pattern in the workspace config is treated. Any file matching the glob is considered a Vitest config file. Any folder matching the glob pattern is treated as a workspace project and is subject to the regular config resolution (single
vitest.config.tsorvite.config.tsinside the folder) - Breaking
workspace: For example,
projects/*will match anything inside theprojectsfolder. If it's a folder, we try to find the config inside that folder (if there is none, it is still treated as a project with the default config). If it's a file, it will be treated as a Vitest config.projects/**/*previously would assume that you only wanted to have folders as projects, but now it will match every single file insideprojects. - Breaking
workspace: This change doesn't affect non-glob usage.
- Breaking
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.