Read the docs
TI-2026-38677 Aliases CVE-2026-53633GHSA-g8mr-85jm-7xhm

Vitest: Exposed Browser Mode API Can Proxy CDP and Overwrite Config Files, Leading to RCE

Priority HIGH 82CWE-749Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
Low
Impact type
Security bypass
Confidentiality · integrity · availability
High · High · High
Fix status
Fixed

Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-862.

Summary

Vitest is a testing framework powered by Vite. From 3.0.0 until 3.2.5, 4.1.8, and 5.0.0-beta.4, Vitest Browser Mode exposed a cdp() API that forwarded raw Chrome DevTools Protocol methods without being gated by allowWrite or allowExec, allowing a remote client with exposed browser API metadata to use CDP Page.setDownloadBehavior and Runtime.evaluate to overwrite vite.config.ts and execute attacker-controlled Node.js code. This issue is fixed in versions 3.2.5, 4.1.8, and 5.0.0-beta.

Why it matters now

Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.00896 59th percentileScored 2026-11-07
Fix Fixed vitest (vitest-dev): 3.2.5, 4.1.8, 5.0.0-beta.4@vitest/browser (npm): 5.0.0-beta.4, 4.1.8, 3.2.5+1 more product

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
Poc
Automatable
Yes
Technical impact
Total

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
vitest-devvitest3.0.0 to before 3.2.5; 4.0.0 to before 4.1.8; 5.0.0-beta.0 to before 5.0.0-beta.43.2.5, 4.1.8, 5.0.0-beta.4Patch availableCNA
—@vitest/browser (npm)5.0.0-beta.0 to before 5.0.0-beta.45.0.0-beta.4Patch availableGHSA-g8mr-85jm-7xhm
—@vitest/browser (npm)4.0.0 to before 4.1.84.1.8Patch availableGHSA-g8mr-85jm-7xhm
—@vitest/browser (npm)3.0.0 to before 3.2.53.2.5Patch availableGHSA-g8mr-85jm-7xhm
—vite-plus (npm)before 0.1.240.1.24Patch availableGHSA-g8mr-85jm-7xhm
  • vitest Vendorvitest-dev Affected 3.0.0 to before 3.2.5; 4.0.0 to before 4.1.8; 5.0.0-beta.0 to before 5.0.0-beta.4 Fixed in 3.2.5, 4.1.8, 5.0.0-beta.4 Patch available CNA
  • @vitest/browser (npm) Vendor— Affected 5.0.0-beta.0 to before 5.0.0-beta.4 Fixed in 5.0.0-beta.4 Patch available GHSA-g8mr-85jm-7xhm
  • @vitest/browser (npm) Vendor— Affected 4.0.0 to before 4.1.8 Fixed in 4.1.8 Patch available GHSA-g8mr-85jm-7xhm
  • @vitest/browser (npm) Vendor— Affected 3.0.0 to before 3.2.5 Fixed in 3.2.5 Patch available GHSA-g8mr-85jm-7xhm
  • vite-plus (npm) Vendor— Affected before 0.1.24 Fixed in 0.1.24 Patch available GHSA-g8mr-85jm-7xhm

CPE names Threatist (inferred) · 1

Inferred from how NVD named this product before; not given by a source.

CPEVersionsRoleVendor
cpe:2.3:a:vitest.dev:vitest:*:*:*:*:*:*:*:*——vitest-dev
  • cpe:2.3:a:vitest.dev:vitest:*:*:*:*:*:*:*:* Versions — — ·vitest-dev

Remediation

  • Fix · CNA vitest (vitest-dev) Fixed in 3.2.5, 4.1.8, 5.0.0-beta.4
  • Fix · GHSA-g8mr-85jm-7xhm @vitest/browser (npm) Fixed in 5.0.0-beta.4 Advisory →
  • Fix · GHSA-g8mr-85jm-7xhm @vitest/browser (npm) Fixed in 4.1.8 Advisory →
  • Fix · GHSA-g8mr-85jm-7xhm @vitest/browser (npm) Fixed in 3.2.5 Advisory →
  • Fix · GHSA-g8mr-85jm-7xhm vite-plus (npm) Fixed in 0.1.24 Advisory →

Vendor assessments

Red Hat

Red Hat rating: Important. Red Hat's page for this CVE →

Not affected: 1 product
  • Red Hat Trusted Artifact Signer

Timeline

  1. 2026-10-02 Threatist record created from CVE-2026-53633
  2. 2026-10-03 Alias added: GHSA-g8mr-85jm-7xhm

References

  • TI-2026-34992 Vitest: Arbitrary file can be read and executed when Vitest UI server is listening CVSS 3.1CRITICAL 9.8
  • TI-2026-34991 Vitest browser mode serves unsanitized otelCarrier query parameter as inline script CVSS 3.1CRITICAL 9.6
  • TI-2025-18644 Remote Code Execution when accessing a malicious website while Vitest API server is listening CVSS 3.1CRITICAL 9.7
  • TI-2025-18643 Browser mode serves arbitrary files in vitest CVSS 3.1HIGH 7.5
  • TI-2026-76917 Backslash traversal in Vitest mocker exposes files on Windows CVSS 3.1MEDIUM 5.9
  • TI-2026-76916 Code injection in Vitest manual mock registration CVSS 3.1MEDIUM 4.7
See all 9 →

Sources