Medium severity · published Jul 14, 2026
CVE-2026-47429
Vitest: Arbitrary file can be read and executed when Vitest UI server is listening
5.9
CVSS
0.9%
EPSS
No
On KEV
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.
CVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
Attack vector
Network
Complexity
High
Privileges
None
User interaction
None
Confidentiality
High
Integrity
None
Availability
None
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.9% · higher than 59% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
VI
vitest · vitest-dev
< 3.2.5; >= 4.0.0, < 4.1.0 · source: vendor, NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2026-47429
CVE.org
https://www.cve.org/CVERecord?id=CVE-2026-47429
Patch
https://github.com/vitest-dev/vitest/commit/20e00ef7808de6d330c5e2fda530f686e08f1c8d
Patch
https://github.com/vitest-dev/vitest/commit/af88b1f5d82844a4761ea9a977156c98e2b14ca8
Exploit
https://github.com/vitest-dev/vitest/pull/10445
Exploit
https://github.com/vitest-dev/vitest/pull/9350
Release Notes
https://github.com/vitest-dev/vitest/releases/tag/v3.2.5
Release Notes
https://github.com/vitest-dev/vitest/releases/tag/v4.1.0
More from vitest
9.8
CVE-2026-53633
Vitest: Exposed Browser Mode API Can Proxy CDP and Overwrite Config Files, Leading to RCE
9.6
CVE-2026-47428
Vitest browser mode serves unsanitized otelCarrier query parameter as inline script
9.4
CVE-2026-73653
Vitest: Browser Mode provider commands bypass the file-access permission gate
8.8
CVE-2025-24964
Vitest is a testing framework powered by Vite
7.5
CVE-2025-24963
Vitest is a testing framework powered by Vite
