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

Summary

CVECVE-2026-53633
StatePUBLISHED
AssignerGitHub_M
Source PriorityCVE Program / NVD first with legacy fallback
Published2026-07-14 20:17:42 UTC
Updated2026-07-14 20:17:42 UTC
DescriptionVitest 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


VersionSourceTypeScoreSeverityVector
3.1[email protected]Secondary9.8CRITICALCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
3.1CNADECLARED9.8CRITICALCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

CVSS v3.1 Breakdown

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

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

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
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

ReferenceSourceLinkTags
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
© CVE.report 2026 |

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report