CVE-2026-112950: vitest-dev vitest Path Traversal
Vulnerability summary
CVE-2026-112950 is a medium (CVSS 5.9) Path Traversal vulnerability in vitest-dev vitest.
Timeline
- 20-10-2026PublishedVulnerability first disclosed.
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
2 scores · 2 sources · 1 version- NVDNIST5.9MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
EPSS trend
No EPSS score has been published for this record yet.
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
@vitest1 product
- mocker≥ 4.1.11, < 4.1.12 | ≥ 5.0.0-rc.2, < 5.0.3
Vitest-dev1 product
- vitest≥ 4.1.11, < 4.1.12 | ≥ 5.0.0-rc.2, < 5.0.3
2 vendors · 2 products
References
5 links- github.com/vitest-dev/vitest/security/advisories/GHSA-xp26-3454-mjgpX Refsource CONFIRM
- github.com/vitest-dev/vitest/releases/tag/v4.1.12X Refsource MISC
- github.com/vitest-dev/vitest/releases/tag/v5.0.3X Refsource MISC