CVE-2026-47429
CRITICALVitest: Arbitrary file can be read and executed when Vitest UI server is listening
Title source: cnaDescription
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.
References (7)
Core 7
Core References
X_Refsource_Confirm x_refsource_confirm
https://github.com/vitest-dev/vitest/security/advisories/GHSA-5xrq-8626-4rwp
X_Refsource_Misc x_refsource_misc
https://github.com/vitest-dev/vitest/pull/10445
X_Refsource_Misc x_refsource_misc
https://github.com/vitest-dev/vitest/pull/9350
X_Refsource_Misc x_refsource_misc
https://github.com/vitest-dev/vitest/commit/20e00ef7808de6d330c5e2fda530f686e08f1c8d
X_Refsource_Misc x_refsource_misc
https://github.com/vitest-dev/vitest/commit/af88b1f5d82844a4761ea9a977156c98e2b14ca8
X_Refsource_Misc x_refsource_misc
https://github.com/vitest-dev/vitest/releases/tag/v3.2.5
X_Refsource_Misc x_refsource_misc
https://github.com/vitest-dev/vitest/releases/tag/v4.1.0
Scores
CVSS v3
9.8
EPSS
0.0101
EPSS Percentile
59.7%
Attack Vector
NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CISA SSVC
Vulnrichment
Exploitation
poc
Automatable
yes
Technical Impact
total
Details
CWE
CWE-22
Status
published
Products (2)
vitest-dev/vitest
< 3.2.5
vitest-dev/vitest
>= 4.0.0, < 4.1.0
Published
Jul 14, 2026
Tracked Since
Jul 15, 2026