Vitest 是一个专为 JavaScript 和 TypeScript 项目设计的原生 Vite 测试框架。在 4.1.11 至 4.1.12 以及 5.0.3 之前的版本中, 与文件系统读取功能在 中对 Windows 平台上的反斜杠(backslash)处理方式存在差异。当客户端能够访问运行在 Windows 上的 Vite 开发服务器,并注册一个包含反斜杠路径遍历的拦截重定向(redirect mock)时,POSIX 路径拼接操作会保留 Windows 风格的路径遍历特征,而后续的文件系统读取操作会将该反
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.
| Vendor | Product | Affected Versions | CPE | Subscribe |
|---|---|---|---|---|
| vitest-dev | vitest | >= 4.1.11, < 4.1.12 | - |
|
| @vitest | mocker | >= 4.1.11, < 4.1.12 | - |
|
| # | POC Description | Source Link | Shenlong Link |
|---|
No public POC found.
Login to generate AI POC| 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 |
No comments yet