{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-47428","id":"CVE-2026-47428","title":"Vitest browser mode serves unsanitized otelCarrier query parameter as inline script","description":"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 ve","descriptionLong":"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.","published":"2026-07-14T19:30:19.670Z","updated":"2026-10-28T02:31:06.562900024Z","reserved":"2026-05-19T19:37:43.527Z","status":"Deferred","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":9.6,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H","rating":"critical","source":"GitHub_M"},"metrics":[{"version":"3.1","score":9.6,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H","rating":"critical","source":"GitHub_M"},{"version":"3.1","score":9.6,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H","rating":"critical","source":"github.com"},{"version":"3.1","score":9.6,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H","rating":"critical","source":"OSV"},{"version":"3.1","score":9.6,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H","rating":"critical","source":"GitHub"}],"rating":"critical","products":["vitest-dev vitest"],"affectedProducts":[{"vendor":"vitest-dev","product":"vitest","defaultStatus":null,"versions":[{"version":">= 4.0.17, < 4.1.6","status":"affected"},{"version":">= 5.0.0-beta.0, < 5.0.0-beta.3","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"npm","name":"@vitest/browser","purl":"pkg:npm/%40vitest/browser","ranges":[">=4.0.17 <4.1.6",">=5.0.0-beta.0 <5.0.0-beta.3"],"fixed":["4.1.6","5.0.0-beta.3"],"advisory":"GHSA-2h32-95rg-cppp"}],"cwes":["CWE-79"],"aliases":["GHSA-2h32-95rg-cppp"],"references":[{"url":"https://github.com/vitest-dev/vitest/security/advisories/GHSA-2h32-95rg-cppp","tags":["x_refsource_CONFIRM","exploit","advisory","web"]},{"url":"https://github.com/vitest-dev/vitest/pull/10283","tags":["x_refsource_MISC","fix"]},{"url":"https://github.com/vitest-dev/vitest/pull/10285","tags":["x_refsource_MISC","fix"]},{"url":"https://github.com/vitest-dev/vitest/commit/18af98cee1830604d57f6a02bf28f8067cdffc06","tags":["x_refsource_MISC","fix"]},{"url":"https://github.com/vitest-dev/vitest/commit/3514f9fa135c90e1c35754fc4d27c9cf351faafa","tags":["x_refsource_MISC","fix"]},{"url":"https://github.com/vitest-dev/vitest/releases/tag/v4.1.6","tags":["x_refsource_MISC","web"]},{"url":"https://github.com/vitest-dev/vitest/releases/tag/v5.0.0-beta.3","tags":["x_refsource_MISC","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/47xxx/CVE-2026-47428.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-47428","tags":["advisory"]},{"url":"https://github.com/vitest-dev/vitest","tags":["package"]},{"url":"https://github.com/vitest-dev/vitest/blob/cba2036a197ec8ed42c35a37db78ef07192202c7/packages/browser/src/client/public/esm-client-injector.js#L41","tags":["web"]},{"url":"https://github.com/vitest-dev/vitest/blob/cba2036a197ec8ed42c35a37db78ef07192202c7/packages/browser/src/node/serverOrchestrator.ts#L48","tags":["web"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total"},"epss":0.0058,"epssPercentile":0.48442,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-47428","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-47428","ok":true,"note":"Deferred"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-47428","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-2h32-95rg-cppp","ok":true,"note":"GHSA-2h32-95rg-cppp"},{"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-47428","ok":true,"note":"scored 2026-11-18"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}