CVE-2026-112950vitest-dev vitest
Medium 5.9 No auth needed
Follow: this CVE · vitest-dev · vitest-dev vitest We alert you by email or Slack (account required).
- Priority
- 50
- CVSS 3.1
- 5.9
- EPSS
- —
- Auth required
- No
- Published
- Oct 20, 2026
- Updated
- Oct 28, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-22
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: no · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
What happens
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.
What to do
- Apply the vendor's security update for vitest.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| npm | @vitest/mocker |
≥ 4.1.11 < 4.1.12 |
4.1.12 |
npm install @vitest/mocker@4.1.12 |
| npm | @vitest/mocker |
≥ 5.0.0-rc.2 < 5.0.3 |
5.0.3 |
npm install @vitest/mocker@5.0.3 |
Per OSV / GitHub Advisories (GHSA-xp26-3454-mjgp). Check the version in your lockfile before upgrading.
Affected products
- vitest-dev · vitest
- @vitest · mocker
As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.
Official sources
References
Links published by the sources. Open them with care.