Backslash Traversal Vulnerability in Vitest Testing Framework by Vitest Dev
CVE-2026-112950

5.9MEDIUM

Key Information:

Vendor

Vitest-dev

Vendor
CVE Published:
20 October 2026

What is CVE-2026-112950?

A vulnerability in the Vitest testing framework allows attackers to exploit the filesystem read functionality on Windows. Versions 4.1.11, 4.1.12, and 5.0.3 are affected by misinterpretation of backslashes, enabling backslash traversal when registering redirect mocks. This flaw allows clients to access files outside the permitted directories configured in the Vitest process. The issue has been rectified in Vitest versions 4.1.12 and 5.0.3, which users are encouraged to upgrade to for enhanced security.

Affected Version(s)

mocker >= 4.1.11, < 4.1.12 < 4.1.11, 4.1.12

mocker >= 5.0.0-rc.2, < 5.0.3 < 5.0.0-rc.2, 5.0.3

vitest >= 4.1.11, < 4.1.12 < 4.1.11, 4.1.12

References

CVSS V3.1

Score:
5.9
Severity:
MEDIUM
Confidentiality:
High
Integrity:
None
Availability:
High
Attack Vector:
Network
Attack Complexity:
High
Privileges Required:
None
User Interaction:
None
Scope:
Unchanged

Timeline

  • Vulnerability published

  • Vulnerability Reserved

.