CVE-2026-45411: CWE-668: Exposure of Resource to Wrong Sphere in patriksimek vm2
vm2 is an open source vm/sandbox for Node.js. Prior to 3.11.3, it is possible to catch a host exception using the yield* expression inside an async generator. When the generator is closed using the return function, the value is awaited on and exceptions thrown in the then call will be caught by the runtime and passed to the yield* iterator as the next value. This allows attackers to write code which can escape from the VM2 sandbox and execute arbitrary commands on the host system. This vulnerability is fixed in 3.11.3.
AI Analysis
Technical Summary
vm2 versions before 3.11.3 contain a sandbox escape vulnerability where exceptions thrown during the awaiting of a value in an async generator's return function are caught and passed back to the yield* iterator. This behavior enables attackers to execute arbitrary commands on the host system by escaping the vm2 sandbox. The issue is tracked as CWE-668 (Exposure of Resource to Wrong Sphere). The vulnerability is rated critical with a CVSS 3.1 score of 9.8. The vulnerability is fixed in vm2 version 3.11.3.
Potential Impact
Successful exploitation allows an attacker to break out of the vm2 sandbox environment and execute arbitrary commands on the host system, leading to full compromise of the host. This impacts confidentiality, integrity, and availability of the affected system.
Mitigation Recommendations
Upgrade vm2 to version 3.11.3 or later, where this vulnerability is fixed. Since no official remediation level or patch link is provided beyond this version update, users should verify they are running 3.11.3 or newer to mitigate this issue. Patch status is not explicitly confirmed beyond the version fix note; check the vendor repository or official advisories for the latest remediation guidance.
CVE-2026-45411: CWE-668: Exposure of Resource to Wrong Sphere in patriksimek vm2
Description
vm2 is an open source vm/sandbox for Node.js. Prior to 3.11.3, it is possible to catch a host exception using the yield* expression inside an async generator. When the generator is closed using the return function, the value is awaited on and exceptions thrown in the then call will be caught by the runtime and passed to the yield* iterator as the next value. This allows attackers to write code which can escape from the VM2 sandbox and execute arbitrary commands on the host system. This vulnerability is fixed in 3.11.3.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
vm2 versions before 3.11.3 contain a sandbox escape vulnerability where exceptions thrown during the awaiting of a value in an async generator's return function are caught and passed back to the yield* iterator. This behavior enables attackers to execute arbitrary commands on the host system by escaping the vm2 sandbox. The issue is tracked as CWE-668 (Exposure of Resource to Wrong Sphere). The vulnerability is rated critical with a CVSS 3.1 score of 9.8. The vulnerability is fixed in vm2 version 3.11.3.
Potential Impact
Successful exploitation allows an attacker to break out of the vm2 sandbox environment and execute arbitrary commands on the host system, leading to full compromise of the host. This impacts confidentiality, integrity, and availability of the affected system.
Mitigation Recommendations
Upgrade vm2 to version 3.11.3 or later, where this vulnerability is fixed. Since no official remediation level or patch link is provided beyond this version update, users should verify they are running 3.11.3 or newer to mitigate this issue. Patch status is not explicitly confirmed beyond the version fix note; check the vendor repository or official advisories for the latest remediation guidance.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-05-12T01:48:40.452Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a04ba26cbff5d8610f48375
Added to database: 5/13/2026, 5:51:34 PM
Last enriched: 5/13/2026, 6:06:20 PM
Last updated: 5/13/2026, 7:09:42 PM
Views: 4
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.
External Links
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.