Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…
EPSS 0.9%top 43%

CVE-2026-53633: CWE-749: Exposed Dangerous Method or Function in vitest-dev vitest

0
Critical
VulnerabilityCVE-2026-53633cvecve-2026-53633cwe-749cwe-862
Published: 07/14/2026 (07/14/2026, 19:35:42 UTC)
Source: CVE Database V5
Vendor/Project: vitest-dev
Product: vitest

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.

CVSS v3.1

Score 9.8critical

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

Affected software

vitest-dev/vitest
pkg:npm/vitest-dev/vitest
Affected versions
<3.2.5<4.1.8=5.0.0-beta.4

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/29/2026, 21:16:19 UTC

Technical Analysis

Vitest versions 3.0.0 up to but not including 3.2.5, versions before 4.1.8, and version 5.0.0-beta.4 exposed a cdp() API in Browser Mode that forwarded raw Chrome DevTools Protocol (CDP) methods without enforcing allowWrite or allowExec restrictions. This allowed a remote client with access to exposed browser API metadata to invoke CDP methods such as Page.setDownloadBehavior and Runtime.evaluate. Exploiting this, an attacker could overwrite the vite.config.ts file and execute arbitrary Node.js code on the host. The vulnerability is identified as CWE-749 (Exposed Dangerous Method or Function) and CWE-862 (Missing Authorization). The issue is fixed in Vitest versions 3.2.5, 4.1.8, and 5.0.0-beta.

Potential Impact

Successful exploitation allows an unauthenticated remote attacker to execute arbitrary Node.js code by leveraging the exposed cdp() API to overwrite configuration files and run attacker-controlled commands. This leads to full system compromise with high confidentiality, integrity, and availability impact as indicated by the CVSS score of 9.8.

Mitigation Recommendations

A fix is available in Vitest versions 3.2.5, 4.1.8, and 5.0.0-beta. Users should upgrade to these or later versions to remediate the vulnerability. There is no indication that temporary mitigations exist; upgrading is the recommended action.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-06-09T20:16:59.647Z
Cvss Version
3.1
State
PUBLISHED
Remediation Level
null

Threat ID: 6a56962968715ace431dcac6

Added to database: 07/14/2026, 20:03:53 UTC

Last enriched: 07/29/2026, 21:16:19 UTC

Last updated: 08/27/2026, 10:52:09 UTC

Views: 101

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses