Skip to content
OpenAdvisories
Critical · 9.6 CVE-2026-47428 EUVD-2026-44401GHSA-2h32-95rg-cppp

Vitest browser mode serves unsanitized otelCarrier query parameter as inline script

Published Jul 14, 2026 · Updated Jul 15, 2026 · Assigned by GitHub_M

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.

Affected products

VendorProductAffectedFixed
vitest-dev vitest >= 4.0.17, < 4.1.6, >= 5.0.0-beta.0, < 5.0.0-beta.3 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Red Hat Hardened Images 1 prometheus3.13 3.13.1-0.1.hum1 RHSA-2026:39058

Affected packages

EcosystemPackageAffectedFixedRecord
npm @vitest/browser >= 4.0.17, < 4.1.6 4.1.6 GHSA-2h32-95rg-cppp
npm @vitest/browser >= 5.0.0-beta.0, < 5.0.0-beta.3 5.0.0-beta.3 GHSA-2h32-95rg-cppp

Advisories 1

References