CVE-2026-47429: Vulnerability in Vitest.dev Vitest

Critical. 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.

npm, CWE-22, CWE-862

Exploitation
None confirmed
Severity
9.8 of 10
Attack likelihood
Unknown
Fix
Fixed version known
Patch deadline
No deadline set

Details

Advisory ID
GHSA-5xrq-8626-4rwp
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness
CWE-22, CWE-862
Published
1 Jun 2026
Last change
24 Oct 2026
Ecosystem
npm

Affected products

Affected versions and the first fixed release

  • Vitest.dev Vitest Before 3.2.5; From 4.0.0 before 4.1.0. Fixed in 3.2.5, 4.1.0

Affected packages

Vulnerable version ranges and fixed releases

  • vitest npm, Affected from 4.0.0 before 4.1.0. Fixed in 4.1.0

Advisories

Vendor and security advisories

Related