CVSS 3.1
5.9 mediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:NMedium (5.9) in vitest.dev vitest. EPSS 1.0% estimated probability of exploitation activity in the next 30 days. Fixed in vitest 3.2.6, 4.1.0.
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:Nvitest (npm): fixed in 4.1.0, 3.2.6Explain CVE-2026-47429 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-47429?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-47429?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-47429 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.
From the NVD's CPE matches.
| Product | Affected |
|---|---|
| vitest.dev:vitest | before 3.2.5 |
| vitest.dev:vitest | from 4.0.0 before 4.1.0 |
| Advisory | Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|---|
| GHSA-5xrq-8626-4rwp | npm | vitest | >=4.0.0 <4.1.0 | 4.1.0 |
| GHSA-5xrq-8626-4rwp | npm | vitest | <3.2.6 | 3.2.6 |
| Distribution | Release | Package | Fixed in | Advisory |
|---|---|---|---|---|
| Red Hat | hummingbird:1 | prometheus3.13 | 0:3.13.1-0.1.hum1 | RHSA-2026:39058 |
From the distributions' data via OSV.dev: Red Hat Security Data © Red Hat, Inc., CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Red Hat.
Red Hat rates this Important.
Vitest ships a UI and API server (enabled via the --ui or --api flags, or automatically as part of Browser Mode) that exposes file read, file write, and test-rerun functionality over HTTP. Due to an incorrect path-traversal check in the /__vitest_attachment__ handler and related code paths, a remote attacker who can reach this server can read arbitrary files, and via the write/rerun features can achieve arbitrary code execution. Exploitation requires either exposing the server to a network host (--api.host / api.host config) or running the UI/Browser Mode on Windows.
Red Hat's shipped products use vitest exclusively as a development-time unit test runner (invoked as `vitest run`, `test:unit`, or `--project` in CI/build pipelines). None of the Red Hat products that ship vitest start its UI server, API server, or Browser Mode as part of their build process or shipped runtime. The @vitest/browser package (required for Browser Mode) is not present in any Red Hat product's manifest. As a result, the vulnerable code path is not reachable in any Red Hat product covered by this flaw, and affects are set to NOTAFFECTED / Vulnerable Code not in Execute Path.
No 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 vitest >= 4.1.0 (or >= 3.2.5 on the 3.x branch), where the allowWrite/allowExec flags default to disabled whenever the server is bound to a non-localhost host.
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Hardened Images | prometheus3-13-main-3.13.1-0.1.hum1 | Fixed 2026-07-13 | RHSA-2026:39058 |
| Red Hat AMQ Broker 7 | vitest | Not affected | |
| Red Hat Ansible Automation Platform 2 | ansible-automation-platform-26/gateway-rhel9 | Not affected | |
| Red Hat Ansible Automation Platform 2 | ansible-automation-platform-27/gateway-rhel9 | Not affected | |
| Red Hat Ansible Automation Platform 2 | automation-platform-ui | Not affected | |
| Red Hat Build of Keycloak | vitest | Not affected | |
| Red Hat Build of Podman Desktop | rh-podman-desktop.git | Not affected | |
| Red Hat JBoss Enterprise Application Platform 8 | vitest | Not affected | |
| Red Hat JBoss Enterprise Application Platform Expansion Pack | vitest | Not affected | |
| Red Hat OpenShift Container Platform 4 | openshift4/ose-agent-installer-ui-rhel9 | Not affected |
Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-47429.
The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.