# CVE-2026-47428: Vitest browser mode serves unsanitized otelCarrier query parameter as inline script

- Severity: Critical 9.6 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.58%, higher than 49% of CVEs (2026-12-02)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-06-01T14:12:18.000Z
- Modified: 2026-10-24T21:10:00.130Z
- Also known as: GHSA-2h32-95rg-cppp
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- vitest-dev vitest: >= 4.0.17, < 4.1.6; >= 5.0.0-beta.0, < 5.0.0-beta.3
- @vitest/browser (npm): from 4.0.17 before 4.1.6; from 5.0.0-beta.0 before 5.0.0-beta.3

## Every score

- GitHub_M: CVSS:3.1 9.6 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H`
- GitHub: CVSS:3.1 9.6 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H`

## References

- <https://github.com/vitest-dev/vitest/security/advisories/GHSA-2h32-95rg-cppp> (exploit, web)
- <https://github.com/vitest-dev/vitest/pull/10283>
- <https://github.com/vitest-dev/vitest/pull/10285>
- <https://github.com/vitest-dev/vitest/commit/18af98cee1830604d57f6a02bf28f8067cdffc06>
- <https://github.com/vitest-dev/vitest/commit/3514f9fa135c90e1c35754fc4d27c9cf351faafa>
- <https://github.com/vitest-dev/vitest/releases/tag/v4.1.6>
- <https://github.com/vitest-dev/vitest/releases/tag/v5.0.0-beta.3>
- <https://github.com/vitest-dev/vitest> (package)
- <https://github.com/vitest-dev/vitest/blob/cba2036a197ec8ed42c35a37db78ef07192202c7/packages/browser/src/client/public/esm-client-injector.js#L41> (web)
- <https://github.com/vitest-dev/vitest/blob/cba2036a197ec8ed42c35a37db78ef07192202c7/packages/browser/src/node/serverOrchestrator.ts#L48> (web)

## Sources

- CVE List: [CVE-2026-47428](https://www.cve.org/CVERecord?id=CVE-2026-47428), CVE Terms of Use, modified 2026-07-15
- GitHub Advisory Database: [GHSA-2h32-95rg-cppp](https://github.com/advisories/GHSA-2h32-95rg-cppp), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-47428](https://nvd.nist.gov/vuln/detail/CVE-2026-47428), Public domain, modified 2026-10-24

---

Page: https://cve.day/CVE-2026-47428 · Whole record: https://cve.day/CVE-2026-47428.json · Rebuilt by cve.day 2026-11-25T22:59:28.170Z
