CVE-2026-53633 Vitest: Exposed Browser Mode API Can Proxy CDP and Overwrite Config Files, Leading to RCE
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.
Which versions are affected by CVE-2026-53633?
8 open source packages ship an affected version, including @vitest/browser and vite-plus.
| Package | Affected | Fixed in |
|---|---|---|
@vitest/browser npm | From 3.0.0 | 3.2.5 |
@vitest/browser npm | From 3.0.0 | 3.2.5 |
@vitest/browser npm | From 4.0.0 | 4.1.8 |
@vitest/browser npm | From 4.0.0 | 4.1.8 |
@vitest/browser npm | From 5.0.0-beta.0 | 5.0.0-beta.4 |
@vitest/browser npm | From 5.0.0-beta.0 | 5.0.0-beta.4 |
2 more packages
vite-plus npm | All versions | 0.1.24 |
vite-plus npm | All versions | 0.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.