CVE-2026-47429 json
Vitest: Arbitrary file can be read and executed when Vitest UI server is listening
published 2026-06-01 5 mo ago modified 2026-10-24 15 d ago also GHSA-5xrq-8626-4rwp , EUVD-2026-44391
- 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 63%
- 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
- github.com/vitest-dev/vitest@20e00ef commit
- github.com/vitest-dev/vitest@af88b1f commit
- github.com/vitest-dev/vitest#10445 pull request
- github.com/vitest-dev/vitest#9350 pull request
- github.com/vitest-dev/vitest/releases/tag/v3.2.5 release
- github.com/vitest-dev/vitest/releases/tag/v4.1.0 release
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.hum1fixed: 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 vitestnot affected: vulnerable code not present
+2 more productsfewer
Red Hat OpenShift Container Platform 4 openshift4/ose-agent-installer-ui-rhel9 Red Hat OpenShift Container Platform 5 openshift5/ose-agent-installer-ui-rhel9
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
- 3 mo ago
Exploit prediction
1.03% chance of exploitation in the next 30 days, higher than 63% of all scored CVEs (FIRST EPSS, 2026-11-08).
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 |
| NVD | 3.1 | 5.9 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N |
| GitHub | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
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
References
-
github.com
/vitest-dev/vitest/pull/10445
web, exploit, issue-tracking, patch
-
github.com
/vitest-dev/vitest/pull/9350
web, exploit, issue-tracking, patch
-
github.com
/vitest-dev/vitest/commit/20e00ef7808de6d330c5e2fda530f686e08f1c8d
web, patch
-
github.com
/vitest-dev/vitest/commit/af88b1f5d82844a4761ea9a977156c98e2b14ca8
web, patch
-
github.com
/vitest-dev/vitest/security/advisories/GHSA-5xrq-8626-4rwp
exploit, web, mitigation, vendor-advisory
-
github.com
/vitest-dev/vitest/releases/tag/v3.2.5
web, release-notes
-
github.com
/vitest-dev/vitest/releases/tag/v4.1.0
web, release-notes
-
nvd.nist.gov
/vuln/detail/CVE-2026-47429
advisory
-
github.com
/vitest-dev/vitest
package
-
github.com
/vitest-dev/vitest/blob/eb1abf08573032a532015b999ad3501c5e89e3bb/packages/browser/src/node/commands/fs.ts#L10-
web
-
github.com
/vitest-dev/vitest/blob/eb1abf08573032a532015b999ad3501c5e89e3bb/packages/browser/src/node/plugin.ts#L194-L196
web
-
github.com
/vitest-dev/vitest/blob/eb1abf08573032a532015b999ad3501c5e89e3bb/packages/browser/src/node/rpc.ts#L115-L121
web
-
github.com
/vitest-dev/vitest/blob/eb1abf08573032a532015b999ad3501c5e89e3bb/packages/ui/node/index.ts#L77
web
-
github.com
/vitest-dev/vitest/blob/eb1abf08573032a532015b999ad3501c5e89e3bb/packages/vitest/src/api/setup.ts#L103-L105
web
-
github.com
/vitest-dev/vitest/blob/eb1abf08573032a532015b999ad3501c5e89e3bb/packages/vitest/src/api/setup.ts#L119-L121
web
Sources
- CVE List CVE-2026-47429
- GitHub Advisory GHSA-5xrq-8626-4rwp
- NVD CVE-2026-47429
Fencer Vulns 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.