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 is an open source sandbox for Node.js. Versions before 3.11.3 contain a vulnerability where exceptions from the host environment can be caught inside sandboxed code via the yield* expression in async generators. When the generator is closed with the return() function, the awaited value can throw exceptions that are caught by the runtime and passed back into the sandbox iterator as the next value. This mechanism allows attackers to escape the sandbox and execute arbitrary commands on the host. The issue is tracked as CWE-668 (Exposure of Resource to Wrong Sphere) and CWE-237 (Improper Handling of Structural Elements). The vulnerability is fixed in version 3.11.3.
Potential Impact
An unauthenticated remote attacker capable of submitting sandboxed async generator code can escape the vm2 sandbox and execute arbitrary commands on the host system. The vulnerability has a CVSS 3.1 score of 9.8 (critical), indicating high impact on confidentiality, integrity, and availability. This could lead to full system compromise of the host running the vulnerable vm2 version.
Mitigation Recommendations
A fix is available in vm2 version 3.11.3. Users should upgrade to version 3.11.3 or later to remediate this vulnerability. The vendor advisory from Red Hat confirms the fix in 3.11.3. No alternative mitigations are indicated. Patch status is confirmed by the vendor advisory.
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.
CVSS v3.1
Score 9.8critical
Affected software
patriksimek
vm2
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
Technical Analysis
vm2 is an open source sandbox for Node.js. Versions before 3.11.3 contain a vulnerability where exceptions from the host environment can be caught inside sandboxed code via the yield* expression in async generators. When the generator is closed with the return() function, the awaited value can throw exceptions that are caught by the runtime and passed back into the sandbox iterator as the next value. This mechanism allows attackers to escape the sandbox and execute arbitrary commands on the host. The issue is tracked as CWE-668 (Exposure of Resource to Wrong Sphere) and CWE-237 (Improper Handling of Structural Elements). The vulnerability is fixed in version 3.11.3.
Potential Impact
An unauthenticated remote attacker capable of submitting sandboxed async generator code can escape the vm2 sandbox and execute arbitrary commands on the host system. The vulnerability has a CVSS 3.1 score of 9.8 (critical), indicating high impact on confidentiality, integrity, and availability. This could lead to full system compromise of the host running the vulnerable vm2 version.
Mitigation Recommendations
A fix is available in vm2 version 3.11.3. Users should upgrade to version 3.11.3 or later to remediate this vulnerability. The vendor advisory from Red Hat confirms the fix in 3.11.3. No alternative mitigations are indicated. Patch status is confirmed by the vendor advisory.
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
- Vendor Advisory Urls
- [{"url":"https://access.redhat.com/security/cve/CVE-2026-45411","vendor":"Red Hat"}]
Threat ID: 6a04ba26cbff5d8610f48375
Added to database: 05/13/2026, 17:51:34 UTC
Last enriched: 08/06/2026, 13:02:49 UTC
Last updated: 09/13/2026, 22:12:47 UTC
Views: 155
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.