CISA list

● npm package

vitest

Vitest has three security advisories. The newest release any of them names as the fix is 5.0.0-rc.2.

As of , vitest has three security advisories. The newest release any of them names as the fix is 5.0.0-rc.2.

Your version, and the version to upgrade to

Find the row your installed version falls in. The second column is the first release after it that none of the advisories lists as affected; a release outside every row is one no advisory lists. That is what the advisories say, not a promise that a release is free of flaws.
If you runUpgrade toAdvisories
From 5.0.0-beta.1 before 5.0.0-rc.25.0.0-rc.21 advisory
Before 4.1.114.1.113 advisories

Security advisories, newest first

Security advisories, newest first
AdvisoryWhat it isAffectsFixed inPublished
CVE-2026-84373GHSA-82fw-gwwq-j7x9Vitest: Path Traversal / Arbitrary File Read via @vitest/mocker Redirect MockModerate severityFrom 5.0.0-beta.1 before 5.0.0-rc.2; From 2.1.0 before 4.1.114.1.11, 5.0.0-rc.2
CVE-2026-47429GHSA-5xrq-8626-4rwpWhen Vitest UI server is listening, arbitrary file can be read and executedCritical severityFrom 4.0.0 before 4.1.0; Before 3.2.63.2.6, 4.1.0
CVE-2025-24964GHSA-9crc-q9x8-hgqqVitest allows Remote Code Execution when accessing a malicious website while Vitest API server is listeningCritical severityFrom 3.0.0 before 3.0.5; From 2.0.0 before 2.1.9; From 1.0.0 before 1.6.1; Up to and including 0.0.1251.6.1, 2.1.9, 3.0.5

Other npm packages

Sources
  • Package advisories from the GitHub Advisory Database (CC BY 4.0). Version ranges are reworded as sentences (source). Licence: CC BY 4.0