CVE-2026-47429
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.
How to fix
- vitest.dev vitest3.2.5, 4.1.0 or later
- vitest4.1.0, 3.2.6 or later
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| vitest.dev vitest | v < 3.2.5, 4.0.0 ≤ v < 4.1.0 | 3.2.5, 4.1.0 |
| vitestnpm | 4.0.0 ≤ v < 4.1.0, v < 3.2.6 | 4.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.
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.