Critical severity · published Jul 14, 2026
CVE-2026-47428
Vitest browser mode serves unsanitized otelCarrier query parameter as inline script
9.6
CVSS
0.6%
EPSS
No
On KEV
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 vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
Required
Confidentiality
High
Integrity
High
Availability
High
Scope
Changed
Exploitation
Is it being used?
Exploit prediction (EPSS)0.6% · higher than 48% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
VI
vitest · vitest-dev
>= 4.0.17, < 4.1.6; >= 5.0.0-beta.0, < 5.0.0-beta.3 · source: vendor
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2026-47428
CVE.org
https://www.cve.org/CVERecord?id=CVE-2026-47428
github.com
https://github.com/vitest-dev/vitest/commit/18af98cee1830604d57f6a02bf28f8067cdffc06
github.com
https://github.com/vitest-dev/vitest/commit/3514f9fa135c90e1c35754fc4d27c9cf351faafa
github.com
https://github.com/vitest-dev/vitest/pull/10283
github.com
https://github.com/vitest-dev/vitest/pull/10285
github.com
https://github.com/vitest-dev/vitest/releases/tag/v4.1.6
github.com
https://github.com/vitest-dev/vitest/releases/tag/v5.0.0-beta.3
More from vitest
9.8
CVE-2026-53633
Vitest: Exposed Browser Mode API Can Proxy CDP and Overwrite Config Files, Leading to RCE
9.4
CVE-2026-73653
Vitest: Browser Mode provider commands bypass the file-access permission gate
8.8
CVE-2025-24964
Vitest is a testing framework powered by Vite
7.5
CVE-2025-24963
Vitest is a testing framework powered by Vite
6.5
CVE-2026-112948
Vitest: Servers misapply `server.fs.deny`, serving `.env`, private keys, `.git`, and the API token file
