# CVE-2026-53633: Vitest remote code execution in Browser Mode cdp API

Source: https://junglewise.ai/threats/cve-2026-53633-vitest-remote-code-execution-in-browser-mode-cdp-api  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-07-14. Updated: 2026-07-14  
License: CC BY 4.0 with a link back

CVE-2026-53633 · Severity: critical · CVSS 9.8 · Published 2026-07-14

Vitest is a testing framework used by developers to verify their code. A vulnerability in its Browser Mode allows remote attackers to bypass security restrictions and execute malicious code on a developer's machine. This could lead to full system compromise, data theft, or unauthorized modification of project configuration files.

Technologies: [@vitest/browser (npm)](https://junglewise.ai/threats/technologies/vitest-browser), [vite-plus (npm)](https://junglewise.ai/threats/technologies/vite-plus). Vendors: [npm](https://junglewise.ai/threats/vendors/npm).

## Quick answers

**Is CVE-2026-53633 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-53633 being exploited in the wild.

**How severe is CVE-2026-53633?** Critical severity, with a CVSS score of 9.8, published 14 July 2026.

**Which products and versions are affected?** @vitest/browser (npm) SEMVER:introduced=5.0.0-beta.0,fixed=5.0.0-beta.4; vite-plus (npm) <= 0.1.23, SEMVER:introduced=0,fixed=0.1.24.

**Is there a fix for CVE-2026-53633?** Yes. @vitest/browser (npm): upgrade to 5.0.0-beta.4 or later; vite-plus (npm): upgrade to 0.1.24 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2026-53633 attacked?** It is attacked over the network, in a software library.

**Am I affected by CVE-2026-53633?** Check whether you run @vitest/browser (npm) or vite-plus (npm) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- @vitest/browser (npm): upgrade to 5.0.0-beta.4 or later

  ```sh
  npm install @vitest/browser@5.0.0-beta.4
  ```

- vite-plus (npm): upgrade to 0.1.24 or later

  ```sh
  npm install vite-plus@0.1.24
  ```


## Technical details

A vulnerability exists in Vitest Browser Mode where the cdp() API forwarded raw Chrome DevTools Protocol (CDP) methods without being gated by allowWrite or allowExec security configurations. A remote client with access to browser API metadata could utilize CDP methods such as Page.setDownloadBehavior and Runtime.evaluate to overwrite the vite.config.ts file. This leads to the execution of attacker-controlled Node.js code. The issue is classified under CWE-749 (Exposed Dangerous Method or Function) and CWE-862 (Missing Authorization). Patches are available in versions 3.2.5, 4.1.8, and 5.0.0-beta.4.

## Affected products

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

## Identifiers

- CVE-2026-53633
- GHSA-g8mr-85jm-7xhm

## Timeline

- 2026-07-14: advisory: NVD publication date
- 2026-05-28: patched: Fixes committed to repository

## References

- [https://github.com/vitest-dev/vitest/commit/385a1aefd4c2bfa5e7d58bf7c6834c929969f2c7](https://github.com/vitest-dev/vitest/commit/385a1aefd4c2bfa5e7d58bf7c6834c929969f2c7)
- [https://github.com/vitest-dev/vitest/commit/63e3b2eee4d58da56786a6333f517b9b492528c7](https://github.com/vitest-dev/vitest/commit/63e3b2eee4d58da56786a6333f517b9b492528c7)
- [https://github.com/vitest-dev/vitest/commit/e4067b3b150005fd42cf75f994300119245806b9](https://github.com/vitest-dev/vitest/commit/e4067b3b150005fd42cf75f994300119245806b9)
- [https://github.com/vitest-dev/vitest/pull/10444](https://github.com/vitest-dev/vitest/pull/10444)
- [https://github.com/vitest-dev/vitest/pull/10450](https://github.com/vitest-dev/vitest/pull/10450)
- [https://github.com/vitest-dev/vitest/pull/10456](https://github.com/vitest-dev/vitest/pull/10456)
- [https://github.com/vitest-dev/vitest/releases/tag/v3.2.5](https://github.com/vitest-dev/vitest/releases/tag/v3.2.5)

## Related threats

- [Vitest filesystem deny misapplication in dev servers](https://junglewise.ai/threats/cve-2026-112948-vitest-is-a-testing-framework-powered-by-vite-from-5-0-0-beta-6)
- [Vite information disclosure via WebAssembly query parameter](https://junglewise.ai/threats/cve-2026-112947-vite-is-a-frontend-tooling-framework-for-javascript-from-8-2-0)
- [Vite import analysis filesystem disclosure](https://junglewise.ai/threats/cve-2026-112946-vite-is-a-frontend-tooling-framework-for-javascript-prior-to-6-4)
- [Vite path traversal in transformIndexHtml](https://junglewise.ai/threats/cve-2026-112945-vite-is-a-frontend-tooling-framework-for-javascript-prior-to-6-4)
- [launch-editor command injection in editor invocation](https://junglewise.ai/threats/cve-2026-112944-launch-editor-allows-users-to-open-files-with-line-numbers-in)
