CVE-2026-47429

Critical

Description

Vitest is a testing framework powered by Vite. Prior to 3.2.5 and 4.1.0, the Vitest UI/API server on Windows used isFileServingAllowed incorrectly for /__vitest_attachment__, allowing \\?\\..\\ path traversal to read files outside the project; exposed API write and rerun features such as saveTestFile and rerun could also allow arbitrary script execution. This issue is fixed in versions 3.2.5 and 4.1.0.

SeverityCritical
CVSS9.8
Exploit probability—
ProductVitest
PublishedJul 14, 2026
First seenJul 14, 2026

How to fix

Update
  • vitest.dev vitest3.2.5, 4.1.0 or later
  • vitest4.1.0, 3.2.6 or later

Affected products

ProductAffected versionsFixed in
vitest.dev vitestv < 3.2.5, 4.0.0 ≤ v < 4.1.03.2.5, 4.1.0
vitestnpm4.0.0 ≤ v < 4.1.0, v < 3.2.64.1.0, 3.2.6

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.