Skip to content
Fencer Intel
critical 9.8

CVE-2026-47429 json

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

published 5mo ago modified 18d ago also EUVD-2026-44391 , GHSA-5xrq-8626-4rwp

cvss
9.8
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
1.0%
EPSS 1.0% chance of exploitation in 30 days, percentile 64%
public exploits
0
none known

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.

Patch / fix

  • npm vitest 3.2.6, 4.1.0
  • vitest.dev vitest 3.2.5, 4.1.0
  • prometheus3.13 hummingbird 1 3.13.1-0.1.hum1

red hat advisories RHSA-2026:39058

Is CVE-2026-47429 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.

Check with Fencer

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2026-47429 updated cvss 8.1

vitest: Vitest: Arbitrary code execution and information disclosure via path traversal

  • Red Hat Hardened Images prometheus3.13 3.13.1-0.1.hum1
    fixed: vendor fix RHSA-2026:39058
  • Red Hat AMQ Broker 7 vitest Red Hat Ansible Automation Platform 2 automation-platform-ui, ansible-automation-platform-26/gateway-rhel9, ansible-automation-platform-27/gateway-rhel9 Red Hat Build of Keycloak vitest Red Hat Build of Podman Desktop rh-podman-desktop.git Red Hat JBoss Enterprise Application Platform 8 vitest Red Hat JBoss Enterprise Application Platform Expansion Pack vitest
    +2 more products
    Red Hat OpenShift Container Platform 4 openshift4/ose-agent-installer-ui-rhel9 Red Hat OpenShift Container Platform 5 openshift5/ose-agent-installer-ui-rhel9
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

CISA SSVC

Exploitation
Proof of concept is public
Automatable
yes
Technical impact
total
Assessed
3mo ago

Exploit prediction

1.03% chance of exploitation in the next 30 days, higher than 64% of all scored CVEs (FIRST EPSS, 2026-11-11).

Exploits and checks

  • github.com https://github.com/vitest-dev/vitest/pull/10445 referenced PoC, tagged "exploit" by a source, unverified
  • github.com https://github.com/vitest-dev/vitest/pull/9350 referenced PoC, tagged "exploit" by a source, unverified
  • github.com https://github.com/vitest-dev/vitest/security/advisories/GHSA-5xrq-8626-4rwp referenced PoC, tagged "exploit" by a source, unverified

CVSS scores

assigned by version score vector
CNA 3.1 9.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
GitHub 3.1 9.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD 3.1 5.9 CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N

Affected packages

ecosystem package affected fixed in
npm vitest
>=4.0.0, <4.1.0
<3.2.6
4.1.0
3.2.6

Affected products

  • vitest-dev vitest

Classification

Weakness
  • CWE-22 Improper Limitation of a Pathname to a Restricted Directory
  • CWE-862 Missing Authorization

References

Sources

Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.

The maintainers of vitest-dev/vitest published their own advisory on GitHub. Reviewed sources take precedence over it.

CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.