Skip to content

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.

PackageAffectedFixed inStatus
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

ProductAffected versionsFixed 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