Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. @vitest/browser
  4. ›
  5. CVE-2026-53633

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

June 15, 2026

Vitest Browser Mode exposes a cdp() API that forwards raw Chrome DevTools Protocol (CDP) methods over the Vitest browser WebSocket RPC. CDP is not gated by browser.api.allowWrite, browser.api.allowExec, api.allowWrite, or api.allowExec.

As a result, disabling Browser Mode write and exec operations does not prevent a browser API client from using CDP to perform equivalent actions. In a verified reproduction with allowWrite: false and allowExec: false, CDP Page.setDownloadBehavior set the browser download directory to the project root, and CDP Runtime.evaluate downloaded a controlled vite.config.ts. Vitest reloaded the changed config and executed attacker-controlled Node.js code.

When the Browser Mode API is also exposed to the network, this becomes remotely exploitable because the generated browser runner page exposes the API token, active session id, project name, and project root path needed to connect to the browser WebSocket API and select the target download directory.

References

  • github.com/advisories/GHSA-g8mr-85jm-7xhm
  • github.com/vitest-dev/vitest/security/advisories/GHSA-g8mr-85jm-7xhm
  • nvd.nist.gov/vuln/detail/CVE-2026-53633

Code Behaviors & Features

Detect and mitigate CVE-2026-53633 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 3.0.0 before 3.2.5, all versions starting from 4.0.0 before 4.1.8, all versions starting from 5.0.0-beta.0 before 5.0.0-beta.4

Fixed versions

  • 3.2.5
  • 4.1.8
  • 5.0.0-beta.4

Solution

Upgrade to versions 3.2.5, 4.1.8, 5.0.0-beta.4 or above.

Impact 9.8 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-749: Exposed Dangerous Method or Function
  • CWE-862: Missing Authorization

Source file

npm/@vitest/browser/CVE-2026-53633.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 16 Jun 2026 12:17:49 +0000.