CVE-2026-47428
published critical CVSS 3.1 · 9.6Vitest browser mode serves unsanitized otelCarrier query parameter as inline script
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| vitest-dev | — | vitest>= 4.0.17, < 4.1.6 · >= 5.0.0-beta.0, < 5.0.0-beta.3 | Affected | Not stated | 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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 9.6 / 10
- Severity
- critical
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| vitest-dev | vitest | >= 4.0.17, < 4.1.6 (affected)>= 5.0.0-beta.0, < 5.0.0-beta.3 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-79 CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
References
7- 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
- https://github.com/vitest-dev/vitest/releases/tag/v5.0.0-beta.3
- https://github.com/vitest-dev/vitest/security/advisories/GHSA-2h32-95rg-cppp
Provider assertions
2GitHub_M · cna
Vitest browser mode serves unsanitized otelCarrier query parameter as inline script
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 20d077dfae6a94e2b71315794f324d01ec13047dd23738633215748411b4ad71
- Ingested
- 23 Sep 2026, 09:16:58 UTC
- Source record
- Official CVE record