CVE-2026-47137: CWE-913: Improper Control of Dynamically-Managed Code Resources in patriksimek vm2
vm2 is an open source vm/sandbox for Node.js. Prior to version 3.11.4, the fix for GHSA-8hg8-63c5-gwmx (CVE-2023-37903) introduced a check in nodevm.js line 263 that blocks the combination nesting: true + require: false. However, the check uses strict equality (options.require === false), which is trivially bypassed by omitting the require option entirely. When require is not specified, options.require is undefined, not false. The strict equality check fails, so the security guard is skipped. Immediately after (line 280), the destructuring default require: requireOpts = false assigns requireOpts = false, producing the exact configuration the patch was designed to prevent. This issue has been patched in version 3.11.4.
AI Analysis
Technical Summary
The vulnerability in vm2 prior to version 3.11.4 stems from a flawed patch for a previous issue (CVE-2023-37903). The patch added a strict equality check (options.require === false) to block the combination of 'nesting: true' and 'require: false'. However, if the 'require' option is omitted, options.require is undefined, causing the check to fail and skip the security guard. Subsequently, a destructuring assignment sets requireOpts to false by default, effectively enabling the insecure configuration the patch was meant to block. This improper control of dynamically-managed code resources (CWE-913) can lead to critical impact on confidentiality, integrity, and availability. The vulnerability is fixed in vm2 version 3.11.4.
Potential Impact
This vulnerability allows bypassing a security check in the vm2 sandbox, potentially enabling an attacker to execute code with improper restrictions. The CVSS score of 10.0 reflects a critical impact on confidentiality, integrity, and availability of the affected system. Exploitation could lead to full compromise of the sandboxed environment.
Mitigation Recommendations
A fix for this vulnerability is available in vm2 version 3.11.4. Users should upgrade to version 3.11.4 or later to remediate this issue. There is no indication that temporary mitigations or workarounds are available or recommended.
CVE-2026-47137: CWE-913: Improper Control of Dynamically-Managed Code Resources in patriksimek vm2
Description
vm2 is an open source vm/sandbox for Node.js. Prior to version 3.11.4, the fix for GHSA-8hg8-63c5-gwmx (CVE-2023-37903) introduced a check in nodevm.js line 263 that blocks the combination nesting: true + require: false. However, the check uses strict equality (options.require === false), which is trivially bypassed by omitting the require option entirely. When require is not specified, options.require is undefined, not false. The strict equality check fails, so the security guard is skipped. Immediately after (line 280), the destructuring default require: requireOpts = false assigns requireOpts = false, producing the exact configuration the patch was designed to prevent. This issue has been patched in version 3.11.4.
CVSS v3.1
Score 10.0critical
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in vm2 prior to version 3.11.4 stems from a flawed patch for a previous issue (CVE-2023-37903). The patch added a strict equality check (options.require === false) to block the combination of 'nesting: true' and 'require: false'. However, if the 'require' option is omitted, options.require is undefined, causing the check to fail and skip the security guard. Subsequently, a destructuring assignment sets requireOpts to false by default, effectively enabling the insecure configuration the patch was meant to block. This improper control of dynamically-managed code resources (CWE-913) can lead to critical impact on confidentiality, integrity, and availability. The vulnerability is fixed in vm2 version 3.11.4.
Potential Impact
This vulnerability allows bypassing a security check in the vm2 sandbox, potentially enabling an attacker to execute code with improper restrictions. The CVSS score of 10.0 reflects a critical impact on confidentiality, integrity, and availability of the affected system. Exploitation could lead to full compromise of the sandboxed environment.
Mitigation Recommendations
A fix for this vulnerability is available in vm2 version 3.11.4. Users should upgrade to version 3.11.4 or later to remediate this issue. There is no indication that temporary mitigations or workarounds are available or recommended.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-05-18T19:50:18.696Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a2c1a23e617e2d8347eb1d6
Added to database: 06/12/2026, 14:39:31 UTC
Last enriched: 06/19/2026, 18:23:34 UTC
Last updated: 07/31/2026, 19:22:59 UTC
Views: 69
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
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
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.