{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-112949","id":"CVE-2026-112949","title":"Vitest XSS in interceptorPlugin manual mocks","description":"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 a","descriptionLong":"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.","published":"2026-10-20T15:19:03.799Z","updated":"2026-11-11T10:47:24.161418556Z","reserved":"2026-10-19T21:30:47.245Z","status":"Awaiting Analysis","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":4.7,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"GitHub_M"},"metrics":[{"version":"3.1","score":4.7,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"GitHub_M"},{"version":"3.1","score":4.7,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"github.com"},{"version":"3.1","score":4.7,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"OSV"},{"version":"3.1","score":4.7,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"GitHub"}],"rating":"medium","products":["vitest-dev vitest","@vitest mocker"],"affectedProducts":[{"vendor":"vitest-dev","product":"vitest","defaultStatus":null,"versions":[{"version":">= 2.1.0-beta.7, < 4.1.12","status":"affected"},{"version":">= 5.0.0, < 5.0.3","status":"affected"}],"platforms":[]},{"vendor":"@vitest","product":"mocker","defaultStatus":null,"versions":[{"version":">= 2.1.0-beta.7, < 4.1.12","status":"affected"},{"version":">= 5.0.0, < 5.0.3","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"npm","name":"@vitest/mocker","purl":"pkg:npm/%40vitest/mocker","ranges":[">=2.1.0-beta.7 <4.1.12",">=5.0.0-beta.1 <5.0.3"],"fixed":["4.1.12","5.0.3"],"advisory":"GHSA-qxg6-89mg-rqv8"}],"cwes":["CWE-94","CWE-116","CWE-306"],"aliases":["GHSA-qxg6-89mg-rqv8"],"references":[{"url":"https://github.com/vitest-dev/vitest/security/advisories/GHSA-qxg6-89mg-rqv8","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-112949.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-112949","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.00336,"epssPercentile":0.27464,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-112949","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-112949","ok":true,"note":"Awaiting Analysis"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-112949","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-qxg6-89mg-rqv8","ok":true,"note":"GHSA-qxg6-89mg-rqv8"},{"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-112949","ok":true,"note":"scored 2026-11-18"}],"aiTitle":true,"tech":[],"critical":[],"attention":null}