CVE-2026-47428vitest-dev vitest
Critical 9.6 No auth needed
Follow: this CVE · vitest-dev · vitest-dev vitest We alert you by email or Slack (account required).
- 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.
What to do
- Apply the vendor's security update for vitest.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How 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
- vitest-dev · vitest
As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.
Official advisories
- Red Hat Security Advisory: Red Hat Hardened Images RPMs bug fix and enhancement update · Red Hat · RHSA-2026:39058 · Jul 16, 2026 Critical
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.