@vitest/mocker

Vitest module mocker implementation

5.1.2Latest, 25 Nov 2026
796MDownloads, last month
0Advisories on the latest
3Advisories, all versions
MITLicence
17KStars

Known advisories

Severity Advisory Fix Published
Moderate Vitest: Code injection via unauthenticated manual mock registration CVE-2026-112949 Fixed in 4.1.12, 5.0.3 21 Oct 2026
Moderate Vitest: Windows backslash traversal bypasses the @vitest/mocker redirect allowlist fix CVE-2026-112950 Fixed in 4.1.12, 5.0.3 21 Oct 2026
Moderate Vitest: Path Traversal / Arbitrary File Read via @vitest/mocker Redirect Mock CVE-2026-84373 Fixed in 4.1.11, 5.0.0-rc.2 8 Sep 2026

In the news

On Hacker News

Sources: npm, deps.dev (CC BY 4.0), OSV. Last checked 4 Dec 2026.