{"cve":"CVE-2026-47428","nvd":{"published":"2026-07-14T20:17:02.307","modified":"2026-10-24T21:10:00.130","status":"Deferred","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 versions 4.1.6 and 5.0.0-beta.3.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H","score":9.6},"cwes":["CWE-79"],"references":["https://github.com/vitest-dev/vitest/commit/18af98cee1830604d57f6a02bf28f8067cdffc06","https://github.com/vitest-dev/vitest/commit/3514f9fa135c90e1c35754fc4d27c9cf351faafa","https://github.com/vitest-dev/vitest/pull/10283","https://github.com/vitest-dev/vitest/pull/10285","https://github.com/vitest-dev/vitest/releases/tag/v4.1.6"],"products":[],"source":"nvd","synced_at":"2026-10-25T17:50:06.907763985+00:00"},"epss":{"cve":"CVE-2026-47428","score":0.0058,"percentile":0.47433,"date":"2026-10-25"},"kev":null,"osv":[{"id":"GHSA-2h32-95rg-cppp","url":"https://osv.dev/vulnerability/GHSA-2h32-95rg-cppp","summary":"Vitest browser mode serves unsanitized otelCarrier query parameter as inline script","modified":"2026-09-10T03:51:07.455138470Z","packages":[{"ecosystem":"npm","name":"@vitest/browser","purl":"pkg:npm/%40vitest/browser","ranges":[">=4.0.17 <4.1.6"],"fixed":["4.1.6"]},{"ecosystem":"npm","name":"@vitest/browser","purl":"pkg:npm/%40vitest/browser","ranges":[">=5.0.0-beta.0 <5.0.0-beta.3"],"fixed":["5.0.0-beta.3"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}