CVE-2026-47429 Vitest: Arbitrary file can be read and executed when Vitest UI server is listening
MediumCVSS 5.9
EPSS 1.0%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: yes · technical impact: total
- Technology
- Red Hat
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.
Upgrade path
4 packages: 3 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| npm vitest(npm) | < 3.2.6; >= 4.0.0, < 4.1.0 | 3.2.6, 4.1.0 | Fixed |
| redhat/prometheus3-13-main(Red Hat hummingbird 1) | < 3.13.1-0.1.hum1 | 3.13.1-0.1.hum1 | Fixed |
| vitest.dev vitest | < 3.2.5; >= 4.0.0, < 4.1.0 | 3.2.5, 4.1.0 | Fixed |
| vitest-dev vitest | = < 3.2.5; = >= 4.0.0, < 4.1.0 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| vitest-dev vitest | = < 3.2.5 | No fix listed |
| vitest-dev vitest | = >= 4.0.0, < 4.1.0 | No fix listed |
| redhat/prometheus3-13-main(Red Hat:hummingbird:1) | < 3.13.1-0.1.hum1 | 3.13.1-0.1.hum1 |
| npm vitest(npm) | >= 4.0.0, < 4.1.0 | 4.1.0 |
| npm vitest(npm) | < 3.2.6 | 3.2.6 |
| vitest.dev vitest | < 3.2.5 | 3.2.5 |
| vitest.dev vitest | >= 4.0.0, < 4.1.0 | 4.1.0 |
References
- https://github.com/vitest-dev/vitest/security/advisories/GHSA-5xrq-8626-4rwp exploit mitigation vendor-advisory
- https://github.com/vitest-dev/vitest/pull/10445 exploit issue-tracking patch
- https://github.com/vitest-dev/vitest/pull/9350 exploit issue-tracking patch
- https://github.com/vitest-dev/vitest/commit/20e00ef7808de6d330c5e2fda530f686e08f1c8d patch
- https://github.com/vitest-dev/vitest/commit/af88b1f5d82844a4761ea9a977156c98e2b14ca8 patch
- https://github.com/vitest-dev/vitest/releases/tag/v3.2.5 release-notes
- https://github.com/vitest-dev/vitest/releases/tag/v4.1.0 release-notes
- Red Hat CVE page mitigation vendor-advisory
- RHSA-2026:39058 patch vendor-advisory
- Red Hat Bugzilla 2500573 issue-tracking
- www.cve.org
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com
- github.com
- github.com
- github.com
- github.com
- github.com
- github.com product