Skip to content
OpenAdvisories
Critical · 9.8 Public exploit CVE-2026-47429 EUVD-2026-44391GHSA-5xrq-8626-4rwp

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

Published Jul 14, 2026 · Updated Jul 21, 2026 · Assigned by GitHub_M

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.

Affected products

VendorProductAffectedFixed
vitest-dev vitest < 3.2.5, >= 4.0.0, < 4.1.0 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Red Hat Hardened Images 1 prometheus3.13 3.13.1-0.1.hum1 RHSA-2026:39058

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling vitess-23 23.0.4-r8 —

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 1 repository

  • az9713/cve-lite-on-pi ★ 0 · Jun 9, 2026

    Running OWASP cve-lite-cli against the pi monorepo: scan journey and key finding (vitest CVE-2026-47429).

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Affected packages

EcosystemPackageAffectedFixedRecord
npm vitest >= 4.0.0, < 4.1.0 4.1.0 GHSA-5xrq-8626-4rwp
npm vitest < 3.2.6 3.2.6 GHSA-5xrq-8626-4rwp

Advisories 1

References