CVE-2026-112950: Vitest: Windows backslash traversal bypasses the @vitest/mocker redirect allowlist fix
Vulnerability summary
CVE-2026-112950 is a medium (CVSS 5.9) vulnerability in vitest-dev vitest. EPSS estimates a 0.54% chance of exploitation in the next 30 days, higher than 47% of scored vulnerabilities.
Not severe (CVSS 5.9, network access); no exploitation reported by the 5 checked sources
CIRCL last checked 05-12-2026
Source freshness unavailable
How is this decided?Timeline
- 20-10-2026PublishedVulnerability first disclosed.
- 28-10-2026Last modifiedVulnerability information updated.
Description
Vitest is a Vite-native testing framework for JavaScript and TypeScript projects. From 4.1.11 until 4.1.12 and 5.0.3, isFileLoadingAllowed and the filesystem read interpret backslashes differently on Windows in packages/mocker/src/node/interceptorPlugin.ts. When a client can reach the Vite dev server on Windows and register a redirect mock containing backslash traversal, POSIX joining preserves a Windows backslash traversal that the later filesystem read interprets as a path separator, so the client can read a file outside server.fs.allow that the Vitest process can access. This issue is fixed in versions 4.1.12 and 5.0.3.
CVSS metrics
5 scores · 5 sources · 1 version- NVDNIST5.9MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
- OSV · NpmEcosystem advisory · calculated5.9MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
- OSV · ChainguardEcosystem advisory · calculated5.9MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
- OSV · WolfiEcosystem advisory · calculated5.9MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
EPSS trend
Probability
0.54%
Chance of exploitation in the next 30 days
Percentile
47%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.54% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
Chainguard10 products
- gitlab-rails-ce-18.11All versions (No fix recorded) | < 18.11.13-r0
- gitlab-rails-ce-19.1All versions (No fix recorded) | < 19.1.9-r0
- gitlab-rails-ce-19.2All versions (No fix recorded)
- gitlab-rails-ce-19.4All versions (No fix recorded) | < 19.4.3-r6
- gitlab-rails-ce-19.5All versions (No fix recorded) | < 19.5.1-r12
@vitest2 products
- mocker≥ 4.1.11, < 4.1.12 | ≥ 5.0.0-rc.2, < 5.0.3
- mocker≥ 4.1.11, < 4.1.12 | ≥ 5.0.0-rc.2, < 5.0.3
Wolfi2 products
- renovateAll versions (No fix recorded) | < 44.178.1-r0
- vitess-24All versions (No fix recorded) | < 24.0.5-r3
Vitest-dev1 product
- vitest≥ 4.1.11, < 4.1.12 | ≥ 5.0.0-rc.2, < 5.0.3
4 vendors · 15 products
References
8 links- github.com/vitest-dev/vitestPACKAGE