Vitest: Exposed Browser Mode API Can Proxy CDP and Overwrite Config Files, Leading to RCE
Summary
| CVE | CVE-2026-53633 |
|---|---|
| State | PUBLISHED |
| Assigner | GitHub_M |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2026-07-14 20:17:42 UTC |
| Updated | 2026-07-14 20:17:42 UTC |
| 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. |
Risk And Classification
Primary CVSS: v3.1 9.8 CRITICAL from [email protected]
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Problem Types: CWE-749 | CWE-862 | CWE-749 CWE-749: Exposed Dangerous Method or Function | CWE-862 CWE-862: Missing Authorization
| Version | Source | Type | Score | Severity | Vector |
|---|---|---|---|---|---|
| 3.1 | [email protected] | Secondary | 9.8 | CRITICAL | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| 3.1 | CNA | DECLARED | 9.8 | CRITICAL | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
CVSS v3.1 Breakdown
Attack Vector
NetworkAttack Complexity
LowPrivileges Required
NoneUser Interaction
NoneScope
UnchangedConfidentiality
HighIntegrity
HighAvailability
HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Vendor Declared Affected Products
| Source | Vendor | Product | Version | Platforms |
|---|---|---|---|---|
| CNA | Vitest-dev | Vitest | affected >= 3.0.0, < 3.2.5 | Not specified |
| CNA | Vitest-dev | Vitest | affected >= 4.0.0, < 4.1.8 | Not specified |
| CNA | Vitest-dev | Vitest | affected >= 5.0.0-beta.0, < 5.0.0-beta.4 | Not specified |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| github.com/vitest-dev/vitest/commit/385a1aefd4c2bfa5e7d58bf7c6834c929969... | [email protected] | github.com | |
| github.com/vitest-dev/vitest/commit/63e3b2eee4d58da56786a6333f517b9b4925... | [email protected] | github.com | |
| github.com/vitest-dev/vitest/releases/tag/v4.1.8 | [email protected] | github.com | |
| github.com/vitest-dev/vitest/pull/10444 | [email protected] | github.com | |
| github.com/vitest-dev/vitest/pull/10450 | [email protected] | github.com | |
| github.com/vitest-dev/vitest/commit/e4067b3b150005fd42cf75f9943001192458... | [email protected] | github.com | |
| github.com/vitest-dev/vitest/releases/tag/v5.0.0-beta.4 | [email protected] | github.com | |
| github.com/vitest-dev/vitest/pull/10456 | [email protected] | github.com | |
| github.com/vitest-dev/vitest/releases/tag/v3.2.5 | [email protected] | github.com | |
| github.com/vitest-dev/vitest/security/advisories/GHSA-g8mr-85jm-7xhm | [email protected] | github.com | |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
No vendor comments have been submitted for this CVE.
There are currently no legacy QID mappings associated with this CVE.