CVE-2026-112950

Source
https://cve.org/CVERecord?id=CVE-2026-112950
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-112950.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-112950
Aliases
Downstream
Published
2026-10-20T15:21:32Z
Modified
2026-10-21T02:55:52Z
Severity
  • 5.9 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N CVSS Calculator
Summary
Vitest: Windows backslash traversal bypasses the @vitest/mocker redirect allowlist fix
Details

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.

Database specific
{
    "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"
}
References

Affected packages

Git / github.com/vitest-dev/vitest

Affected ranges

Type
GIT
Repo
https://github.com/vitest-dev/vitest
Events
Database specific
Show details
{
    "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"
        }
    ]
}

Affected versions

v4.*
v4.1.11
v5.*
v5.0.0
v5.0.0-rc.2
v5.0.0-rc.3
v5.0.0-rc.4
v5.0.1
v5.0.2

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-112950.json"