Vulnerability · Published Jul 14, 2026 · Assigned by GitHub_M

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

Critical 9.8

In plain English

A critical-severity missing authorization in vitest from vitest-dev. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.9% (higher than 60% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)9.8Critical
Exploit odds (30 days)0.9%top 40.3% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
npm@vitest/browser5.0.0-beta.4GHSA-g8mr-85jm-7xhm
npm@vitest/browser4.1.8GHSA-g8mr-85jm-7xhm
npm@vitest/browser3.2.5GHSA-g8mr-85jm-7xhm
npmvite-plus0.1.24GHSA-g8mr-85jm-7xhm

Affected products (as reported)

VendorProductVersions
vitest-dev vitest >= 3.0.0, < 3.2.5>= 4.0.0, < 4.1.8>= 5.0.0-beta.0, < 5.0.0-beta.4

Weakness: CWE-749, CWE-862 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

References