{"id":"CVE-2026-47428","published":"2026-07-14T19:30:19Z","modified":"2026-07-15T13:20:14Z","title":"Vitest browser mode serves unsanitized otelCarrier query parameter as inline script","vendor":"vitest-dev","product":"vitest","tier":"tail","description":{"text":"Vitest is a testing framework powered by Vite. From 4.0.17 until 4.1.6 and 5.0.0-beta.3, Vitest Browser Mode served /__vitest_test__/ with the otelCarrier query parameter inserted directly into an inline module script, allowing a crafted browser-runner URL to execute arbitrary JavaScript in the Vitest server origin and recover VITEST_API_TOKEN for authenticated API calls. This issue is fixed in versions 4.1.6 and 5.0.0-beta.3.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.6,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0058,"percentile":0.48636,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://github.com/vitest-dev/vitest/security/advisories/GHSA-2h32-95rg-cppp","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/vitest-dev/vitest/pull/10283","tags":["x_refsource_MISC"]},{"url":"https://github.com/vitest-dev/vitest/pull/10285","tags":["x_refsource_MISC"]},{"url":"https://github.com/vitest-dev/vitest/commit/18af98cee1830604d57f6a02bf28f8067cdffc06","tags":["x_refsource_MISC"]},{"url":"https://github.com/vitest-dev/vitest/commit/3514f9fa135c90e1c35754fc4d27c9cf351faafa","tags":["x_refsource_MISC"]},{"url":"https://github.com/vitest-dev/vitest/releases/tag/v4.1.6","tags":["x_refsource_MISC"]},{"url":"https://github.com/vitest-dev/vitest/releases/tag/v5.0.0-beta.3","tags":["x_refsource_MISC"]}],"priority":{"score":16.4,"factors":[{"name":"EPSS percentile","points":9.73},{"name":"CVSS severity","points":6.72}]},"vendorSlug":"vitest-dev","affectedVersions":[{"vendor":"vitest-dev","product":"vitest","versions":[">= 4.0.17, < 4.1.6",">= 5.0.0-beta.0, < 5.0.0-beta.3"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2026-07-15T13:20:10.196813Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"@vitest/browser","vulnerableRanges":[">=4.0.17, <4.1.6",">=5.0.0-beta.0, <5.0.0-beta.3"],"patched":["4.1.6","5.0.0-beta.3"],"from":["GHSA-2h32-95rg-cppp"],"provenance":"source"}],"euvd":{"id":"EUVD-2026-44401","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-vitest-dev-vitest-cve-2025-24963","parents":[{"from":"CVE-2025-24964","to":"CVE-2026-47428","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["packages/browser/src/node/serverOrchestrator.ts"],"commits":["https://github.com/vitest-dev/vitest/commit/191ef9e34c867d0efd04f49b3d38193a68e825dc","https://github.com/vitest-dev/vitest/commit/7ce9fbb4972d45c6fd34c843645ef6f549bbb241","https://github.com/vitest-dev/vitest/commit/18af98cee1830604d57f6a02bf28f8067cdffc06","https://github.com/vitest-dev/vitest/commit/3514f9fa135c90e1c35754fc4d27c9cf351faafa"],"basis":"shared function","functions":["resolveOrchestrator"]}]}],"children":[{"from":"CVE-2026-47428","to":"CVE-2026-53633","relation":"successor","confidence":"high","kind":"lineage","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"npm:@vitest/browser","fromFixed":"5.0.0-beta.3","toFixed":"5.0.0-beta.4","daysApart":0},{"kind":"version-step","provenance":"source","package":"npm:@vitest/browser","fromFixed":"4.1.6","toFixed":"4.1.8","daysApart":0},{"kind":"same-code","provenance":"machine","files":["packages/vitest/src/node/types/browser.ts"],"commits":["https://github.com/vitest-dev/vitest/commit/18af98cee1830604d57f6a02bf28f8067cdffc06","https://github.com/vitest-dev/vitest/commit/3514f9fa135c90e1c35754fc4d27c9cf351faafa","https://github.com/vitest-dev/vitest/commit/385a1aefd4c2bfa5e7d58bf7c6834c929969f2c7","https://github.com/vitest-dev/vitest/commit/63e3b2eee4d58da56786a6333f517b9b492528c7"],"basis":"shared function","functions":["BrowserCommandContext"]}]}],"packageHistory":[{"cve":"CVE-2025-24963","published":"2025-02-04","fixed":"3.0.4","kev":false},{"cve":"CVE-2026-47428","published":"2026-07-14","fixed":"5.0.0-beta.3","kev":false},{"cve":"CVE-2026-53633","published":"2026-07-14","fixed":"5.0.0-beta.4","kev":false},{"cve":"CVE-2026-73653","published":"2026-08-13","fixed":"5.0.0-beta.6","kev":false},{"cve":"CVE-2026-112948","published":"2026-10-20","fixed":"5.0.5","kev":false}],"package":"npm:@vitest/browser"}}