Mend.io Vulnerability Database
The largest open source vulnerability database
What is a Vulnerability ID?
New vulnerability? Tell us about it!
CVE-2026-112950
Published:October 20, 2026
Updated:October 21, 2026
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.
Affected Packages
https://github.com/vitest-dev/vitest.git (GITHUB):
Affected version(s) =v4.1.11 <v4.1.12
Fix Suggestion:
Update to version v4.1.12
https://github.com/vitest-dev/vitest.git (GITHUB):
Affected version(s) >=v5.0.0-rc.2 <v5.0.3
Fix Suggestion:
Update to version v5.0.3
@vitest/mocker (NPM):
Affected version(s) >=5.0.0-rc.2 <5.0.3
Fix Suggestion:
Update to version 5.0.3
@vitest/mocker (NPM):
Affected version(s) =4.1.11 <4.1.12
Fix Suggestion:
Update to version 4.1.12
Do you need more information?
Contact Us
CVSS v4
Base Score:
8.2
Attack Vector
NETWORK
Attack Complexity
HIGH
Attack Requirements
NONE
Privileges Required
NONE
User Interaction
NONE
Vulnerable System Confidentiality
HIGH
Vulnerable System Integrity
NONE
Vulnerable System Availability
NONE
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
5.9
Attack Vector
NETWORK
Attack Complexity
HIGH
Privileges Required
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
NONE
Availability
NONE
Weakness Type (CWE)
Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
EPSS
Base Score:
0.38