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

Critical 9.8 Published Updated

Remote attackers can exploit exposed Browser Mode APIs to overwrite configuration files and execute arbitrary code in Vitest projects.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2026-53633?

CVE-2026-53633 is a critical code injection vulnerability in vitest-dev vitest, published on 14 Jul 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

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.

Weakness: CWE-862, CWE-749

Which versions are affected by CVE-2026-53633?

8 open source packages ship an affected version, including @vitest/browser and vite-plus.

PackageAffectedFixed in
@vitest/browser npmFrom 3.0.03.2.5
@vitest/browser npmFrom 3.0.03.2.5
@vitest/browser npmFrom 4.0.04.1.8
@vitest/browser npmFrom 4.0.04.1.8
@vitest/browser npmFrom 5.0.0-beta.05.0.0-beta.4
@vitest/browser npmFrom 5.0.0-beta.05.0.0-beta.4
2 more packages
vite-plus npmAll versions0.1.24
vite-plus npmAll versions0.1.24

How do I fix CVE-2026-53633?

Upgrade @vitest/browser to a fixed version for your release line: 3.2.5, 4.1.8 or 5.0.0-beta.4.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2026-53633 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-53633 exists.

Sources

Also known as CLSA-2026-1790459317, CLSA-2026-1792160942, CLSA-2026-1792160962, CLSA-2026-1792161477, CLSA-2026-1792161653, CLSA-2026-1792161665 and 11 more.

Is CVE-2026-53633 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free