CVE-2026-24781: CWE-94: Improper Control of Generation of Code ('Code Injection') in patriksimek vm2
vm2 is an open source vm/sandbox for Node.js. Prior to version 3.11.0, VM2 suffers from a sandbox breakout vulnerability through the inspect function. This allows attackers to write code which can escape from the VM2 sandbox and execute arbitrary commands on the host system. This issue has been patched in version 3.11.0.
AI Analysis
Technical Summary
vm2 is an open source sandbox for Node.js that isolates untrusted code execution. Versions before 3.11.0 contain a sandbox breakout vulnerability through the inspect function, classified under CWE-94 (Improper Control of Generation of Code) and CWE-693. This flaw allows an attacker to inject code that escapes the sandbox environment and execute arbitrary commands on the host system, posing a critical security risk. The vulnerability is addressed by upgrading to vm2 version 3.11.0, which includes the necessary patch to prevent this code injection and sandbox escape.
Potential Impact
Successful exploitation allows remote attackers to execute arbitrary code on the host system without any privileges or user interaction, compromising confidentiality, integrity, and availability of the affected system. This can lead to full system compromise, data theft, or disruption of services running on the host.
Mitigation Recommendations
Upgrade vm2 to version 3.11.0 or later, where this vulnerability is patched. Since this is not a cloud service, users must apply the update themselves. No other mitigations are indicated by the vendor advisory.
CVE-2026-24781: CWE-94: Improper Control of Generation of Code ('Code Injection') in patriksimek vm2
Description
vm2 is an open source vm/sandbox for Node.js. Prior to version 3.11.0, VM2 suffers from a sandbox breakout vulnerability through the inspect function. This allows attackers to write code which can escape from the VM2 sandbox and execute arbitrary commands on the host system. This issue has been patched in version 3.11.0.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
vm2 is an open source sandbox for Node.js that isolates untrusted code execution. Versions before 3.11.0 contain a sandbox breakout vulnerability through the inspect function, classified under CWE-94 (Improper Control of Generation of Code) and CWE-693. This flaw allows an attacker to inject code that escapes the sandbox environment and execute arbitrary commands on the host system, posing a critical security risk. The vulnerability is addressed by upgrading to vm2 version 3.11.0, which includes the necessary patch to prevent this code injection and sandbox escape.
Potential Impact
Successful exploitation allows remote attackers to execute arbitrary code on the host system without any privileges or user interaction, compromising confidentiality, integrity, and availability of the affected system. This can lead to full system compromise, data theft, or disruption of services running on the host.
Mitigation Recommendations
Upgrade vm2 to version 3.11.0 or later, where this vulnerability is patched. Since this is not a cloud service, users must apply the update themselves. No other mitigations are indicated by the vendor advisory.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-01-26T21:06:47.869Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 69f8d216cbff5d861039702c
Added to database: 5/4/2026, 5:06:30 PM
Last enriched: 5/4/2026, 5:22:54 PM
Last updated: 5/5/2026, 5:27:59 AM
Views: 3
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.