Skip to main content
EPSS 0.6%top 54%

CVE-2026-47686: CWE-693: Protection Mechanism Failure in patriksimek vm2

0
Critical
Published: 08/17/2026 (08/17/2026, 20:54:39 UTC)
Source: CVE Database V5
Vendor/Project: patriksimek
Product: vm2

Description

CVE-2026-47686 is a critical vulnerability in the vm2 sandbox for Node.js prior to version 3.11.6. The vulnerability arises because the handleException() function does not sanitize the Error.cause property, allowing sandboxed code to access powerful host objects like process via specially crafted errors. This can lead to arbitrary command execution on the host. The issue is fixed in vm2 version 3.11.6.

CVSS v3.1

Score 9.9critical

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Changed
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H

Affected software

patriksimek

vm2

Affected versions
<3.11.6
vm2
pkg:npm/vm2
Affected versions
<3.11.6

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: 09/12/2026, 00:16:32 UTC

Technical Analysis

The vm2 sandbox for Node.js versions before 3.11.6 contains a protection mechanism failure (CWE-693) in the handleException() function within lib/setup-sandbox.js. While it sanitizes certain error properties (SuppressedError.error, SuppressedError.suppressed, AggregateError.errors), it fails to sanitize the Error.cause property. This omission allows sandboxed code to obtain privileged host objects, such as the process object, from an embedder-exposed host function that throws an error with that object as its cause. Exploiting this flaw enables execution of arbitrary commands on the host system. The vulnerability is addressed in version 3.11.6.

Potential Impact

Successful exploitation allows sandboxed code to escape the vm2 sandbox and execute arbitrary commands on the host system with the privileges of the Node.js process. This compromises confidentiality, integrity, and availability of the host environment, making it a critical security risk.

Mitigation Recommendations

Upgrade vm2 to version 3.11.6 or later, where the vulnerability is fixed by properly sanitizing the Error.cause property in handleException(). No other mitigation is required as the fix is official and complete.

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-05-19T21:18:20.403Z
Cvss Version
3.1
State
PUBLISHED

Threat ID: 6a837910bf8831d53993194b

Added to database: 08/17/2026, 21:11:44 UTC

Last enriched: 09/12/2026, 00:16:32 UTC

Last updated: 10/02/2026, 02:46:04 UTC

Views: 51

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