Read the docs
TI-2026-34992 Aliases CVE-2026-47429GHSA-5xrq-8626-4rwp

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

Priority HIGH 82CWE-22Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
Low
Impact type
Security bypass
Confidentiality · integrity · availability
High · High · High
Fix status
Fixed

Attack profile from CVSS 3.1 · CNA. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-862.

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.

Why it matters now

Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.01028 63rd percentileScored 2026-11-07
Public exploit Yes 3 exploit referencesTagged by NVD
Fix Fixed vitest (vitest-dev): 3.2.5, 4.1.0vitest (npm): 4.1.0, 3.2.6Red Hat: 1 advisory

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
Poc
Automatable
Yes
Technical impact
Total

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
vitest-devvitestbefore 3.2.5; 4.0.0 to before 4.1.03.2.5, 4.1.0Patch availableCNA
—vitest (npm)4.0.0 to before 4.1.04.1.0Patch availableGHSA-5xrq-8626-4rwp
—vitest (npm)before 3.2.63.2.6Patch availableGHSA-5xrq-8626-4rwp
  • vitest Vendorvitest-dev Affected before 3.2.5; 4.0.0 to before 4.1.0 Fixed in 3.2.5, 4.1.0 Patch available CNA
  • vitest (npm) Vendor— Affected 4.0.0 to before 4.1.0 Fixed in 4.1.0 Patch available GHSA-5xrq-8626-4rwp
  • vitest (npm) Vendor— Affected before 3.2.6 Fixed in 3.2.6 Patch available GHSA-5xrq-8626-4rwp

CPE configurations NVD · 1

CPEVersionsRoleVendor
cpe:2.3:a:vitest.dev:vitest:*:*:*:*:*:node.js:*:*before 3.2.5; 4.0.0 to before 4.1.0Vulnerablevitest-dev
  • cpe:2.3:a:vitest.dev:vitest:*:*:*:*:*:node.js:*:* Versions before 3.2.5; 4.0.0 to before 4.1.0 Vulnerable ·vitest-dev

Remediation

  • Fix · CNA vitest (vitest-dev) Fixed in 3.2.5, 4.1.0
  • Fix · GHSA-5xrq-8626-4rwp vitest (npm) Fixed in 4.1.0 Advisory →
  • Fix · GHSA-5xrq-8626-4rwp vitest (npm) Fixed in 3.2.6 Advisory →

Red Hat 1 advisory

  • RHSA-2026:39058 Released 2026-07-13 · Red Hat rating Critical
    Red Hat Hardened Images RPMs bug fix and enhancement update
    • Red Hat Hardened Images prometheus3.13-3.13.1-0.1.hum1@aarch64, prometheus3.13-3.13.1-0.1.hum1@src, prometheus3.13-3.13.1-0.1.hum1@x86_64

Vendor assessments

Red Hat

Red Hat rating: Critical. Red Hat's page for this CVE →

ProductStatusPlan or fix
Red Hat Hardened ImagesFixed RHSA-2026:39058
Not affected: 8 products
  • Red Hat AMQ Broker 7
  • Red Hat Ansible Automation Platform 2
  • Red Hat Build of Keycloak
  • Red Hat Build of Podman Desktop
  • Red Hat JBoss Enterprise Application Platform 8
  • Red Hat JBoss Enterprise Application Platform Expansion Pack
  • Red Hat OpenShift Container Platform 4
  • Red Hat OpenShift Container Platform 5

Timeline

  1. 2026-10-02 Threatist record created from CVE-2026-47429
  2. 2026-10-03 Alias added: GHSA-5xrq-8626-4rwp
  3. 2026-11-05 Affected versions changed · Red Hat

References

  • TI-2025-18644 Remote Code Execution when accessing a malicious website while Vitest API server is listening CVSS 3.1CRITICAL 9.7
  • TI-2025-18643 Browser mode serves arbitrary files in vitest CVSS 3.1HIGH 7.5

Sources