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.
{
"cna_assigner": "GitHub_M",
"cwe_ids": [
"CWE-22"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/112xxx/CVE-2026-112950.json"
}{
"extracted_events": [
{
"range": [
{
"introduced": "4.1.11"
},
{
"fixed": "4.1.12"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StringRangeExpression"
},
{
"range": [
{
"introduced": "5.0.0-rc.2"
},
{
"fixed": "5.0.3"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StringRangeExpression"
},
{
"range": [
{
"fixed": "15cc006aa9f8683dc5f7e895d011fa7dc751ce35"
}
],
"source": "REFERENCES_COMMIT"
},
{
"range": [
{
"fixed": "b825313243dc55757e8d7c0f9e7a792135e13473"
}
],
"source": "REFERENCES_COMMIT"
},
{
"original_tag": "v4.1.12",
"range": [
{
"fixed": "4766ce1e72ded629d3a37637f57eeae643789a8c"
}
],
"source": "REFERENCES_TAG"
},
{
"original_tag": "v5.0.3",
"range": [
{
"fixed": "33cadea62e8763c455c7fca38d9ab1dda87c5f75"
}
],
"source": "REFERENCES_TAG"
}
]
}