CVE-2026-47429: vitest · Path Traversal
Affects vitestSource CVE Database V5
Not known to be exploited · CVSS 9.8 Critical : upgrade to 4.1.0 or 3.2.5 as a priority.
Data as of 27 Nov 2026, 22:51 UTC
- EPSS
- 0.8% chance of exploitation in 30 days – higher than 56% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 4.1.0, 3.2.5, 3.2.6
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HExploitation evidence
Disclosed: evidence found.
CVE published 14 Jul 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: evidence found.
Public exploit code: GitHub proofs of concept
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), GitHub proofs of concept, the Metasploit, Exploit-DB and nuclei-templates index as of 28 Nov 2026.
What to do
Upgrade vitest to 4.1.0 or 3.2.5; vitest to 4.1.0; vitest to 3.2.6.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| vitest-devvitest | Affected
| Fixed in
|
| vitest-devvitest | Affected
| Fixed in
|
npmvitestpkg:npm/vitestOther threats | Affected
| Fixed in
|
npmvitestpkg:npm/vitestOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
Upgrade Vitest to version 3.2.5 or later, or 4.1.0 or later, where this vulnerability is fixed. Patch status is confirmed by the vendor advisory indicating fixes in these versions. No other mitigations are specified or required once upgraded.
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.
References
- github.com/vitest-dev/vitest/security/advisories/GHSA-5xrq-8626-4rwp (opens in a new tab)
- github.com/vitest-dev/vitest/pull/10445 (opens in a new tab)
- github.com/vitest-dev/vitest/pull/9350 (opens in a new tab)
- github.com/vitest-dev/vitest/commit/20e00ef7808de6d330c5e2fda530f686e08f1c8d (opens in a new tab)
- github.com/vitest-dev/vitest/commit/af88b1f5d82844a4761ea9a977156c98e2b14ca8 (opens in a new tab)
- github.com/vitest-dev/vitest/releases/tag/v3.2.5 (opens in a new tab)
- github.com/vitest-dev/vitest/releases/tag/v4.1.0 (opens in a new tab)