{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-112950","id":"CVE-2026-112950","title":"Vitest file access bypass in Windows redirect mock handling","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 ","descriptionLong":"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.","published":"2026-10-20T15:21:32.396Z","updated":"2026-11-11T10:47:24.159416340Z","reserved":"2026-10-19T21:30:47.246Z","status":"Awaiting Analysis","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":5.9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","rating":"medium","source":"GitHub_M"},"metrics":[{"version":"3.1","score":5.9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","rating":"medium","source":"GitHub_M"},{"version":"3.1","score":5.9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","rating":"medium","source":"github.com"},{"version":"3.1","score":5.9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","rating":"medium","source":"OSV"},{"version":"3.1","score":5.9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","rating":"medium","source":"GitHub"}],"rating":"medium","products":["vitest-dev vitest","@vitest mocker"],"affectedProducts":[{"vendor":"vitest-dev","product":"vitest","defaultStatus":null,"versions":[{"version":">= 4.1.11, < 4.1.12","status":"affected"},{"version":">= 5.0.0-rc.2, < 5.0.3","status":"affected"}],"platforms":[]},{"vendor":"@vitest","product":"mocker","defaultStatus":null,"versions":[{"version":">= 4.1.11, < 4.1.12","status":"affected"},{"version":">= 5.0.0-rc.2, < 5.0.3","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"npm","name":"@vitest/mocker","purl":"pkg:npm/%40vitest/mocker","ranges":[">=4.1.11 <4.1.12",">=5.0.0-rc.2 <5.0.3"],"fixed":["4.1.12","5.0.3"],"advisory":"GHSA-xp26-3454-mjgp"}],"cwes":["CWE-22"],"aliases":["GHSA-xp26-3454-mjgp"],"references":[{"url":"https://github.com/vitest-dev/vitest/security/advisories/GHSA-xp26-3454-mjgp","tags":["x_refsource_CONFIRM","exploit","advisory","web"]},{"url":"https://github.com/vitest-dev/vitest/commit/15cc006aa9f8683dc5f7e895d011fa7dc751ce35","tags":["x_refsource_MISC","fix","web"]},{"url":"https://github.com/vitest-dev/vitest/commit/b825313243dc55757e8d7c0f9e7a792135e13473","tags":["x_refsource_MISC","fix","web"]},{"url":"https://github.com/vitest-dev/vitest/releases/tag/v4.1.12","tags":["x_refsource_MISC","web"]},{"url":"https://github.com/vitest-dev/vitest/releases/tag/v5.0.3","tags":["x_refsource_MISC","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/112xxx/CVE-2026-112950.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-112950","tags":["advisory"]},{"url":"https://github.com/vitest-dev/vitest","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial"},"epss":0.00542,"epssPercentile":0.46269,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-112950","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-112950","ok":true,"note":"Awaiting Analysis"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-112950","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-xp26-3454-mjgp","ok":true,"note":"GHSA-xp26-3454-mjgp"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-112950","ok":true,"note":"scored 2026-11-18"}],"aiTitle":true,"tech":[],"critical":[],"attention":null}