npmWorst: Critical3 advisories

vitest: known vulnerabilities

vitest has 3 reviewed security advisories in the GitHub Advisory Database — 2 critical, 1 moderate. The most recent was published 2026-09-01. Each one below lists the affected version range, the release that fixes it, its CVE and severity. SkyShield matches these against the vitest versions running across your servers, containers and images, and ranks what to patch first.

How to fix vitest

Upgrade vitest to a release at or above the fixed version shown for each advisory below. For npm:

npm install vitest@5.0.0-rc.2 (or run npm audit fix)

SkyShield checks the installed version on every machine and container, so you can see which hosts are still on an affected release after you roll the fix out.

Advisories (3)

Vitest: Path Traversal / Arbitrary File Read via @vitest/mocker Redirect Mock Moderate 5.9 CWE-22 — Affected: from 5.0.0-beta.1 up to 5.0.0-rc.2. Fixed in 5.0.0-rc.2. Published 2026-09-01. GHSA-82fw-gwwq-j7x9 · CVE-2026-84373
When Vitest UI server is listening, arbitrary file can be read and executed Critical 9.8 CWE-22 CWE-862 — Affected: before 3.2.6. Fixed in 3.2.6. Published 2026-07-14. GHSA-5xrq-8626-4rwp · CVE-2026-47429
Vitest allows Remote Code Execution when accessing a malicious website while Vitest API server is listening Critical 9.6 CWE-1385 — Affected: up to and including 0.0.125. No fixed release is listed. Published 2025-02-04. GHSA-9crc-q9x8-hgqq · CVE-2025-24964

Find vitest across your fleet

Install one agent per server and connect your cloud. SkyShield matches your packages and images against GHSA, CISA KEV and EPSS and shows the fix per machine. Free for one server, then from $49 per server a month. Start free.