CVE-2026-47429

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

MEDIUM
5.9
CVSS Score
Published: July 14, 2026 at 07:28 PM UTC
Updated: October 24, 2026 at 09:10 PM UTC
1 product affected across 1 vendorVitest

Using vitest by vitest-dev?

Get instant alerts when new vulnerabilities affect vitest - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.9
Exploit prediction
EPSS 0.9%
SSVC
PoC

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

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 3.2.54.0.0 ≤ v < 4.1.0
Affected range stops below 3.2.5, so it looks safe — our inference, not a vendor statement
Affected range stops below 4.1.0, so it looks safe — our inference, not a vendor statement

References (7)

x_refsource_CONFIRMExploitMitigationVendor Advisory
Source: cverecord
https://github.com/vitest-dev/vitest/security/advisories/GHSA-5xrq-8626-4rwp
x_refsource_MISCExploitIssue TrackingPatch
Source: cverecord
https://github.com/vitest-dev/vitest/pull/10445
x_refsource_MISCExploitIssue TrackingPatch
Source: cverecord
https://github.com/vitest-dev/vitest/pull/9350
x_refsource_MISCRelease Notes
Source: cverecord
https://github.com/vitest-dev/vitest/releases/tag/v3.2.5
x_refsource_MISCRelease Notes
Source: cverecord
https://github.com/vitest-dev/vitest/releases/tag/v4.1.0

SSVC — Action Prioritization

SSVCPoCAutomatableTotal impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

Attack Vector
NETWORK
Complexity
HIGH
Privileges
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
NONE
Availability
NONE
Vector?

Quick Info

StatusANALYZED
CWE
CWE-22

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card