{"id":"CVE-2026-112950","published":"2026-10-20T15:21:32Z","modified":"2026-10-28T14:04:58Z","title":"Vitest: Windows backslash traversal bypasses the @vitest/mocker redirect allowlist fix","vendor":"vitest-dev","product":"vitest","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.9,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00542,"percentile":0.46472,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://github.com/vitest-dev/vitest/security/advisories/GHSA-xp26-3454-mjgp","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/vitest-dev/vitest/commit/15cc006aa9f8683dc5f7e895d011fa7dc751ce35","tags":["x_refsource_MISC"]},{"url":"https://github.com/vitest-dev/vitest/commit/b825313243dc55757e8d7c0f9e7a792135e13473","tags":["x_refsource_MISC"]},{"url":"https://github.com/vitest-dev/vitest/releases/tag/v4.1.12","tags":["x_refsource_MISC"]},{"url":"https://github.com/vitest-dev/vitest/releases/tag/v5.0.3","tags":["x_refsource_MISC"]}],"priority":{"score":13.4,"factors":[{"name":"EPSS percentile","points":9.29},{"name":"CVSS severity","points":4.13}]},"vendorSlug":"vitest-dev","affectedVersions":[{"vendor":"vitest-dev","product":"vitest","versions":[">= 4.1.11, < 4.1.12",">= 5.0.0-rc.2, < 5.0.3"]},{"vendor":"@vitest","product":"mocker","versions":[">= 4.1.11, < 4.1.12",">= 5.0.0-rc.2, < 5.0.3"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-10-28T14:04:50.974371Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"@vitest/mocker","vulnerableRanges":[">=4.1.11, <4.1.12",">=5.0.0-rc.2, <5.0.3"],"patched":["4.1.12","5.0.3"],"from":["GHSA-xp26-3454-mjgp"],"provenance":"source"}],"euvd":{"id":"EUVD-2026-105152","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-vitest-dev-vitest-cve-2025-24963","parents":[{"from":"CVE-2026-84373","to":"CVE-2026-112950","relation":"successor","confidence":"high","kind":"lineage","evidence":[{"kind":"version-step","provenance":"source","package":"npm:@vitest/mocker","fromFixed":"4.1.11","toFixed":"4.1.12","daysApart":49},{"kind":"version-step","provenance":"source","package":"npm:@vitest/mocker","fromFixed":"5.0.0-rc.2","toFixed":"5.0.3","daysApart":49},{"kind":"same-code","provenance":"machine","files":["packages/mocker/src/node/interceptorPlugin.ts"],"commits":["https://github.com/vitest-dev/vitest/commit/15cc006aa9f8683dc5f7e895d011fa7dc751ce35","https://github.com/vitest-dev/vitest/commit/b825313243dc55757e8d7c0f9e7a792135e13473","https://github.com/vitest-dev/vitest/commit/51edf2b072902aec6d30c90ebaafd8f121c6f9d8","https://github.com/vitest-dev/vitest/commit/8ff9b9a9efca7c6cfd5243569440de8d7a33aec4"],"basis":"shared function","functions":["InterceptorPluginOptions","interceptorPlugin"]},{"kind":"similar","provenance":"machine","score":0.36,"basis":"same product + CWE + description similarity"}]}],"packageHistory":[{"cve":"CVE-2026-84373","published":"2026-09-01","fixed":"5.0.0-rc.2","kev":false},{"cve":"CVE-2026-112949","published":"2026-10-20","fixed":"5.0.3","kev":false},{"cve":"CVE-2026-112950","published":"2026-10-20","fixed":"5.0.3","kev":false}],"package":"npm:@vitest/mocker"}}