Vitest: Arbitrary file can be read and executed when Vitest UI server is listening
Summary
| CVE | CVE-2026-47429 |
|---|---|
| State | PUBLISHED |
| Assigner | GitHub_M |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2026-07-14 20:17:02 UTC |
| Updated | 2026-07-14 20:17:02 UTC |
| 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. |
Risk And Classification
Primary CVSS: v3.1 9.8 CRITICAL from [email protected]
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Problem Types: CWE-22 | CWE-22 CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
| Version | Source | Type | Score | Severity | Vector |
|---|---|---|---|---|---|
| 3.1 | [email protected] | Secondary | 9.8 | CRITICAL | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| 3.1 | CNA | DECLARED | 9.8 | CRITICAL | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
CVSS v3.1 Breakdown
Attack Vector
NetworkAttack Complexity
LowPrivileges Required
NoneUser Interaction
NoneScope
UnchangedConfidentiality
HighIntegrity
HighAvailability
HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Vendor Declared Affected Products
| Source | Vendor | Product | Version | Platforms |
|---|---|---|---|---|
| CNA | Vitest-dev | Vitest | affected < 3.2.5 | Not specified |
| CNA | Vitest-dev | Vitest | affected >= 4.0.0, < 4.1.0 | Not specified |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| github.com/vitest-dev/vitest/pull/10445 | [email protected] | github.com | |
| github.com/vitest-dev/vitest/commit/af88b1f5d82844a4761ea9a977156c98e2b1... | [email protected] | github.com | |
| github.com/vitest-dev/vitest/releases/tag/v4.1.0 | [email protected] | github.com | |
| github.com/vitest-dev/vitest/releases/tag/v3.2.5 | [email protected] | github.com | |
| github.com/vitest-dev/vitest/security/advisories/GHSA-5xrq-8626-4rwp | [email protected] | github.com | |
| github.com/vitest-dev/vitest/commit/20e00ef7808de6d330c5e2fda530f686e08f... | [email protected] | github.com | |
| github.com/vitest-dev/vitest/pull/9350 | [email protected] | github.com | |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
No vendor comments have been submitted for this CVE.
There are currently no legacy QID mappings associated with this CVE.