Skip to main content
Public proof of conceptFix available

CVE-2026-47429

A public proof of concept exists; no exploitation attested.

  • Published2026-07-14
  • Fixed in4.1.0 · 3.2.6 · 3.2.5
  • WeaknessCWE-22

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

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.

Timeline

dates in UTC
  1. 2026-07-1420:17CVE publishedNVD

Versions per branch

NVD · OSV
Vitest.dev vitest
BranchAffectedFixed in
4.x≥ 4.0.0, < 4.1.04.1.0
3.2< 3.2.63.2.6
3.2< 3.2.53.2.5

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Products declared by the CNA1 product

As GitHub_M, the CNA that assigned this CVE, declared them in the CVE record; versions as written.

  • vitest-dev vitest
    Affected
    • = < 3.2.5no fix stated
    • = >= 4.0.0, < 4.1.0no fix stated

Source: the CNA record (CVE Program), © The MITRE Corporation,CVE terms of useCVE recordupdated 2026-07-14

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • @rootio/vitestRoot:npmall versions · fixed in 1.6.1-root.io.1
  • @rootio/vitestRoot:npmall versions · fixed in 1.6.1-root.io.2
  • @rootio/vitestRoot:npmall versions · fixed in 2.1.9-root.io.1
  • commercial-gitlab-rails-ee-fips-19.1Chainguardall versions · fixed in 19.1.9-r0
  • gitlab-rails-ce-18.11Chainguardall versions · fixed in 18.11.6-r7
  • gitlab-rails-ce-19.0Chainguardall versions · fixed in 19.0.3-r3
  • gitlab-rails-ce-19.1Chainguardall versions · fixed in 19.1.2-r2
  • gitlab-rails-ce-fips-18.10Chainguardall versions · fixed in 18.10.8-r8

22 more package ranges on OSV.dev

Vendor advisories

  • CVE-2026-47429 Red Hat Product Security3 products fixed

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

  • RHSA-2026:39058 Red Hat Product Security3 products fixed

    Red Hat Security Advisory: Red Hat Hardened Images RPMs bug fix and enhancement update

Full record on NVD

Fix

  1. Update Vitest.dev vitest to 4.1.0 · 3.2.6 · 3.2.5
  2. Vendor fix Red Hat Product Security CVE-2026-47429 · 3 productsFor details on how to apply this update, which includes the changes described in this advisory, refer to: https://images.redhat.com/
  3. Workaround from the vendor Red Hat Product Security CVE-2026-47429 · 3 productsNo mitigation is required for Red Hat products, as none run Vitest's UI/API server or Browser Mode in their build or shipped runtime. Developers who run `vitest --ui`, `vitest --api`, or Browser Mode interactively should avoid binding the server to a non-localhost host, and should upgrade to vites…

Advisories and patches

Detection

read 2026-11-01 01:02 UTC
Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof of concept
Metasploit modules
none listed
Metasploit Framework

Sources

Identifiers

Technical details

CVSS v3 vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
Published
2026-07-14
Last modified
2026-10-24
NVD status
Analyzed
GitHub advisory
GHSA-5xrq-8626-4rwp

Frequently asked questions

What is CVE-2026-47429?

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.

Is CVE-2026-47429 actively exploited?

A proof-of-concept exploit exists for CVE-2026-47429, but active exploitation has not been confirmed at this time.

What is the CVSS score for CVE-2026-47429?

CVE-2026-47429 has a CVSS v3 base score of 5.9 (Medium severity), with vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N.

Running vitest? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website checks · 250 API requests/month

Sources for this record