CVE-2026-47428: vitest-dev vitest Cross-site Scripting
Vulnerability summary
CVE-2026-47428 is a critical (CVSS 9.6) Cross-site Scripting vulnerability in vitest-dev vitest. EPSS estimates a 0.61% chance of exploitation in the next 30 days, higher than 48.3% of scored vulnerabilities.
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.61%
Chance of exploitation in the next 30 days
Percentile
48%
Versus all other CVEs
30-day change
0.00 pp
From 0.61% on 20-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
@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