← back
CVE-2026-47429criticalCWE-22

Vitest: Arbitrary file can be read and executed when Vitest UI server is listening

48Vexday Risk Score

No sign of exploitation. It has a public proof of concept.

ssvc Attendcvss 9.8epss 0.9%
from disclosure to weapon0 days
Published on NVDJul 14
1st PoCJun 9
exploitation probability
0.9%top 42% of all CVEs
observed exploitation
nono source reports it
1 public exploit(s)
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:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Affected products
vitest-dev · vitest
⚠ Public resources, to assess the exposure of systems you control or are authorized to test. Test only with authorization.