Skip to main content
EPSS 1.0%top 39%

CVE-2026-47698: CWE-913: Improper Control of Dynamically-Managed Code Resources in patriksimek vm2

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

Description

CVE-2026-47698 is a critical vulnerability in the open source Node.js sandbox vm2 prior to version 3.11.6. The flaw allows sandboxed code to bypass prototype chain protections via stacked indirection through Function.prototype.call, enabling arbitrary host command execution. This is due to improper control of dynamically-managed code resources in specific vm2 modules. The issue is fixed in vm2 version 3.11.6.

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

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:26 UTC

Technical Analysis

The vulnerability in vm2 (CVE-2026-47698) arises from improper control of dynamically-managed code resources (CWE-913) in lib/bridge.js and lib/setup-sandbox.js. Before version 3.11.6, these modules fail to block stacked indirection through Function.prototype.call around dangerous host prototype getter and setter mutators. This allows sandboxed code to sever a host intrinsic's prototype chain and access e.constructor.constructor, leading to arbitrary host command execution. The vulnerability has a CVSS 3.1 base score of 9.8, indicating critical severity. The issue is resolved in vm2 version 3.11.6.

Potential Impact

Exploitation of this vulnerability allows an attacker to execute arbitrary commands on the host system from within the sandboxed environment, compromising confidentiality, integrity, and availability of the host. The CVSS score of 9.8 reflects the high impact with network attack vector, no privileges required, and no user interaction needed.

Mitigation Recommendations

Upgrade vm2 to version 3.11.6 or later to apply the official fix that addresses this vulnerability. No other mitigation is required as the issue is resolved in this version.

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.404Z
Cvss Version
3.1
State
PUBLISHED

Threat ID: 6a837910bf8831d539931950

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

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

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

Views: 61

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