Vitest
Vitest: Arbitrary file can be read and executed when Vitest UI server is listening
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.
First public PoC
None yetno public PoC found
Public PoCs00 on GitHub
CVSS9.8critical · scored by CNA · CWE-22
CISA KEV
Not listednot known exploited
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
vitest-dev vitest
- < 3.2.5
- >= 4.0.0, < 4.1.0
Fixed in 3.2.5, 4.1.0
Mitigation
Upgrade vitest to 3.2.5 or 4.1.0 or later.
References
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.1 pending
Pending 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| az9713/cve-lite-on-pi | 9 Jun 2026 −36 d | 0 | Pending · mkdir /quarantine/az9713__cve-lite-on-pi-5d360bf144e7: permission denied |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.