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.1%top 79%

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

0
Critical
VulnerabilityCVE-2026-47131cvecve-2026-47131cwe-913
Published: Fri Jun 12 2026 (06/12/2026, 14:14:17 UTC)
Source: CVE Database V5
Vendor/Project: patriksimek
Product: vm2

Description

vm2 is an open source vm/sandbox for Node.js. Prior to version 3.11.4, by combining Buffer.call.call({}.__lookupGetter__, Buffer, "__proto__"), Buffer.call.call({}.__lookupSetter__, Buffer, "__proto__"), and Node.js's ERR_INVALID_ARG_TYPE Error, the host's TypeError constructor can be obtained, which allows the escape from the sandbox. This allows attackers to run arbitrary code. This issue has been patched in version 3.11.4.

CVSS v3.1

Score 10.0critical

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

Affected software

vm2
pkg:npm/vm2
Affected versions
<3.11.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: 06/12/2026, 14:55:56 UTC

Technical Analysis

The vulnerability in patriksimek vm2 (an open source Node.js sandbox) arises from improper control of dynamically-managed code resources (CWE-913). By combining Buffer.call.call on __lookupGetter__ and __lookupSetter__ for the Buffer object's __proto__ property along with Node.js's ERR_INVALID_ARG_TYPE error, an attacker can access the host's TypeError constructor. This access allows escaping the sandbox environment and executing arbitrary code on the host system. The vulnerability is patched in vm2 version 3.11.4.

Potential Impact

Successful exploitation allows an unauthenticated attacker to escape the vm2 sandbox and execute arbitrary code on the host system with the privileges of the Node.js process. This results in full confidentiality, integrity, and availability compromise of the affected environment. The CVSS 3.1 score is 10.0 (critical), reflecting network attack vector, no required privileges or user interaction, and complete system compromise.

Mitigation Recommendations

A fix is available in patriksimek vm2 version 3.11.4. Users should upgrade to version 3.11.4 or later to remediate this vulnerability. No other mitigation or temporary workaround is documented. Patch status is confirmed by the vendor's advisory indicating the issue is fixed in 3.11.4.

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-18T19:50:18.695Z
Cvss Version
3.1
State
PUBLISHED
Remediation Level
null

Threat ID: 6a2c1a22e617e2d8347eb1cc

Added to database: 6/12/2026, 2:39:30 PM

Last enriched: 6/12/2026, 2:55:56 PM

Last updated: 6/13/2026, 4:57:48 AM

Views: 12

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