Skip to main content
← All vulnerabilities
CVE-2026-47428GHSA-2H32-95RG-CPPP

Vitest browser mode serves unsanitized otelCarrier query parameter as inline script

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 4.1.6, 5.0.0-beta.3
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: no
  • Technical impact: total

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: no · Technical impact: total

  3. Record last updated

Affected versions

  • vitest-dev vitest

    From 4.0.17 · fixed in 4.1.6; From 5.0.0-beta.0 · fixed in 5.0.0-beta.3

  • @vitest/browsernpm

    From 4.0.17 · fixed in 4.1.6

  • @vitest/browsernpm

    From 5.0.0-beta.0 · fixed in 5.0.0-beta.3

References 7

GitHub · vitest-dev/vitest