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

- Priority: **Prioritise**
- Reason: Severe, CVSS 9.6 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 1% (FIRST, 04-12-2026)
- Next step: Check applicability: affected before 4.1.6, 5.0.0-beta.3 (CNA); fix release not confirmed
- Status: published
- Published: 2026-07-14 · Modified: 2026-07-15
- Aliases: GHSA-2h32-95rg-cppp
- Record: https://cvemate.com/vulnerability/CVE-2026-47428 · JSON: https://cvemate.com/vulnerability/CVE-2026-47428/json

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

## Signals

- CVSS: 9.6 critical (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
- EPSS: 0.58%, percentile 49.166%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- @vitest browser (Npm): ≥ 4.0.17, \< 4.1.6 \| ≥ 5.0.0-beta.0, \< 5.0.0-beta.3
- vitest-dev vitest: ≥ 4.0.17, \< 4.1.6 \| ≥ 5.0.0-beta.0, \< 5.0.0-beta.3

## References

- <https://github.com/vitest-dev/vitest/security/advisories/GHSA-2h32-95rg-cppp>
- <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>
- <https://github.com/vitest-dev/vitest/blob/cba2036a197ec8ed42c35a37db78ef07192202c7/packages/browser/src/client/public/esm-client-injector.js#L41>
- <https://github.com/vitest-dev/vitest/blob/cba2036a197ec8ed42c35a37db78ef07192202c7/packages/browser/src/node/serverOrchestrator.ts#L48>

---

Data as of 2026-12-05T13:27:17.916Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
