CVE-2026-53633

Critical

Description

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.

SeverityCritical
CVSS9.8
Exploit probability—
Product@vitest/browser
PublishedJul 14, 2026
First seenJul 14, 2026

How to fix

Update
  • @vitest/browser5.0.0-beta.4, 4.1.8, 3.2.5 or later
  • vite-plus0.1.24 or later

Affected products

ProductAffected versionsFixed in
@vitest/browsernpm5.0.0-beta.0 ≤ v < 5.0.0-beta.4, 4.0.0 ≤ v < 4.1.8, 3.0.0 ≤ v < 3.2.55.0.0-beta.4, 4.1.8, 3.2.5
vite-plusnpmv < 0.1.240.1.24

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.

CVE-2026-53633 · @vitest/browser · Dark Radar