Skip to main content
← All vulnerabilities
CVE-2026-47429GHSA-5XRQ-8626-4RWP

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

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 3.2.5, 4.1.0, 3.2.6
1 proof of concept on GitHub
  • Exploitation: poc
  • Automatable: yes
  • Technical impact: total

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: yes · Technical impact: total

  3. Record last updated

Affected versions

  • vitest-dev vitest

    fixed in 3.2.5; From 4.0.0 · fixed in 4.1.0

  • vitestnpm

    From 4.0.0 · fixed in 4.1.0

  • vitestnpm

    fixed in 3.2.6

References 8

GitHub · vitest-dev/vitest

GitHub · az9713/cve-lite-on-pi