CVE-2026-47428: Vitest browser mode serves unsanitized otelCarrier query parameter as inline script
Vulnerability summary
CVE-2026-47428 is a critical (CVSS 9.6) vulnerability in vitest-dev vitest. EPSS estimates a 0.58% chance of exploitation in the next 30 days, higher than 49.1% of scored vulnerabilities.
Severe, CVSS 9.6 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 1% (FIRST, 04-12-2026)
CIRCL last checked 05-12-2026
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 1Timeline
- 14-07-2026PublishedVulnerability first disclosed.
- 15-07-2026Last modifiedVulnerability information updated.
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 metrics
3 scores · 3 sources · 1 version- OSV · NpmEcosystem advisory · calculated9.6CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
- NVDNIST9.6CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
EPSS trend
Probability
0.58%
Chance of exploitation in the next 30 days
Percentile
49%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.58% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.
@vitest1 product
- browser≥ 4.0.17, < 4.1.6 | ≥ 5.0.0-beta.0, < 5.0.0-beta.3
Vitest-dev1 product
- vitest≥ 4.0.17, < 4.1.6 | ≥ 5.0.0-beta.0, < 5.0.0-beta.3
2 vendors · 2 products
References
10 links- github.com/vitest-dev/vitest/pull/10283X Refsource MISC
- github.com/vitest-dev/vitest/pull/10285X Refsource MISC
- github.com/vitest-dev/vitest/releases/tag/v4.1.6X Refsource MISC
- github.com/vitest-dev/vitest/releases/tag/v5.0.0-beta.3X Refsource MISC
- github.com/vitest-dev/vitestPACKAGE