Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2026-112950— Vitest: Windows backslash traversal bypasses the @vitest/mocker redirect allowlist fix

Quick assessment

Affected
vitest-dev vitest
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

Vitest 是一个专为 JavaScript 和 TypeScript 项目设计的原生 Vite 测试框架。在 4.1.11 至 4.1.12 以及 5.0.3 之前的版本中, 与文件系统读取功能在 中对 Windows 平台上的反斜杠(backslash)处理方式存在差异。当客户端能够访问运行在 Windows 上的 Vite 开发服务器,并注册一个包含反斜杠路径遍历的拦截重定向(redirect mock)时,POSIX 路径拼接操作会保留 Windows 风格的路径遍历特征,而后续的文件系统读取操作会将该反

CVSS 5.9 · Medium
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-112950

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
Vitest: Windows backslash traversal bypasses the @vitest/mocker redirect allowlist fix
Source: CVE Program / CVE List V5
Vulnerability 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.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
Source: CVE Program / CVE List V5
Vulnerability Type
对路径名的限制不恰当(路径遍历)
Source: CVE Program / CVE List V5

Affected Products

Vendor Product Affected Versions CPE Subscribe
vitest-dev vitest >= 4.1.11, < 4.1.12 -
@vitest mocker >= 4.1.11, < 4.1.12 -

II. Public POCs for CVE-2026-112950

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-112950

请登录查看更多情报信息。

Other References for CVE-2026-112950 (5)

Same Patch Batch · vitest-dev · 2026-10-20 · 3 CVEs total

CVE-2026-112948 6.5 MEDIUM Vitest: Servers misapply `server.fs.deny`, serving `.env`, private keys, `.git`, and the A
CVE-2026-112949 4.7 MEDIUM Vitest: Code injection via unauthenticated manual mock registration

IV. Related Vulnerabilities

V. Comments for CVE-2026-112950

No comments yet


Leave a comment