{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2026-112949","published":"2026-10-20T16:17:05.660000Z","last_modified":"2026-10-23T02:16:54.907000Z","status":"Awaiting Analysis","cvss":{"version":"3.1","score":4.7,"severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N","source":"security-advisories@github.com","primary":false},"auth":false,"cwes":["CWE-94","CWE-116","CWE-306"],"cpes":[],"cpes_truncated":false,"vendors":["vitest-dev"],"products":["vitest-dev/vitest"],"ssvc":{"exploitation":"poc","automatable":"no","technical_impact":"partial"},"cat":"app","platform":"multi","eol":false,"packages":[{"advisory":"GHSA-qxg6-89mg-rqv8","ecosystem":"npm","name":"@vitest/mocker","purl":"pkg:npm/%40vitest/mocker","ranges":[{"introduced":"2.1.0-beta.7","fixed":"4.1.12"}],"versions":[],"versions_truncated":false},{"advisory":"GHSA-qxg6-89mg-rqv8","ecosystem":"npm","name":"@vitest/mocker","purl":"pkg:npm/%40vitest/mocker","ranges":[{"introduced":"5.0.0-beta.1","fixed":"5.0.3"}],"versions":[],"versions_truncated":false}],"severity":"medium","priority_score":43,"links":{"html_es":"/es/cve/CVE-2026-112949/","html_en":"/en/cve/CVE-2026-112949/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-112949","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-112949"},"untrusted":{"vendor_name":"vitest-dev","product_name":"vitest","desc_en":"Vitest is a Vite-native testing framework for JavaScript and TypeScript projects. From 2.1.0-beta.7 until 4.1.12 and 5.0.3, an unauthenticated non-browser WebSocket client that can reach a development server using interceptorPlugin can register a manual mock whose attacker-controlled url createManualModuleSource inserts unescaped into generated module source. When the developer browser loads the affected module, attacker-controlled JavaScript executes on the development-server origin. This issue is fixed in versions 4.1.12 and 5.0.3.","affected":[{"untrusted_vendor":"vitest-dev","untrusted_product":"vitest","versions":[]},{"untrusted_vendor":"@vitest","untrusted_product":"mocker","versions":[]}],"references":[{"url":"https://github.com/vitest-dev/vitest/commit/15cc006aa9f8683dc5f7e895d011fa7dc751ce35","tags":[]},{"url":"https://github.com/vitest-dev/vitest/commit/b825313243dc55757e8d7c0f9e7a792135e13473","tags":[]},{"url":"https://github.com/vitest-dev/vitest/releases/tag/v4.1.12","tags":[]},{"url":"https://github.com/vitest-dev/vitest/releases/tag/v5.0.3","tags":[]},{"url":"https://github.com/vitest-dev/vitest/security/advisories/GHSA-qxg6-89mg-rqv8","tags":[]}]}}