CVE-2026-112950: vitest · Path Traversal
Affects vitestSource CVE Database V5
Not known to be exploited · CVSS 5.9 Medium : upgrade to 5.0.3 or 4.1.12 when convenient.
Data as of 26 Oct 2026, 14:05 UTC
- EPSS
- 0.4% chance of exploitation in 30 days – higher than 39% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 5.0.3, 4.1.12
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:NExploitation evidence
Disclosed: evidence found.
CVE published 20 Oct 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
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), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.
What to do
Upgrade vitest and mocker and vitest-dev/vitest to 5.0.3 or 4.1.12.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| vitest-devvitest | Affected
| Fixed in
|
| vitest-devvitest | Affected
| Fixed in
|
| @vitestmocker | Affected
| Fixed in
|
| @vitestmocker | Affected
| Fixed in
|
npmvitest-dev/vitestpkg:npm/vitest-dev/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 4.1.12 or later, or 5.0.3 or later, where this path traversal vulnerability is fixed. No other mitigation is indicated by the vendor advisory. Patch status is confirmed fixed in these versions.
Description
CVE-2026-112950 is a path traversal vulnerability in the Vitest testing framework for JavaScript and TypeScript. It affects versions from 4.1.11 up to but not including 4.1.12, and from 5.0.0-rc.2 up to but not including 5.0.3. On Windows, the issue arises because backslash characters in paths are interpreted inconsistently, allowing a client connected to the Vite dev server to read files outside the intended allowed directory. This vulnerability is fixed in versions 4.1.12 and 5.0.3.
References
- github.com/vitest-dev/vitest/security/advisories/GHSA-xp26-3454-mjgp (opens in a new tab)
- github.com/vitest-dev/vitest/commit/15cc006aa9f8683dc5f7e895d011fa7dc751ce35 (opens in a new tab)
- github.com/vitest-dev/vitest/commit/b825313243dc55757e8d7c0f9e7a792135e13473 (opens in a new tab)
- github.com/vitest-dev/vitest/releases/tag/v4.1.12 (opens in a new tab)
- github.com/vitest-dev/vitest/releases/tag/v5.0.3 (opens in a new tab)