Live threats

All CVEs / vitest-dev

CVE-2026-47428vitest-dev vitest

Critical 9.6 No auth needed

Priority
73
CVSS 3.1
9.6
EPSS
—
Auth required
No
Published
Jul 14, 2026
Updated
Oct 24, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-79
SSVC (CISA)
Exploitation: proof of concept · Automatable: no · Technical impact: total
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for vitest.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
npm @vitest/browser ≥ 4.0.17 < 4.1.6 4.1.6 npm install @vitest/browser@4.1.6
npm @vitest/browser ≥ 5.0.0-beta.0 < 5.0.0-beta.3 5.0.0-beta.3 npm install @vitest/browser@5.0.0-beta.3

Per OSV / GitHub Advisories (GHSA-2h32-95rg-cppp). Check the version in your lockfile before upgrading.

Affected products

As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.

Official advisories

Vendor, CERT and distribution advisories that name this CVE. Original titles.

Official sources

References

Links published by the sources. Open them with care.