9.6

CVE-2026-47428: vitest-dev vitest Cross-site Scripting

CVSS: 9.6v3.1CriticalDeferred
AliasesGHSA-2h32-95rg-cppp
Published 14-07-2026Last modified 15-07-2026

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.

Overall risk
70/100
0100
High · default modelHow is this calculated?
CVSS score
9.6/10
010
Critical · v3.1 (CVE.org)
EPSS score
0.61%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 1

Timeline

  1. 14-07-2026
    PublishedVulnerability first disclosed.
  2. 15-07-2026
    Last 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

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

20-09-202620-10-2026
EPSS score
0.61%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected 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