CVE 9.8 CRITICAL

vm2: Sandbox Breakout Using Async Generator_CVE-2026-45411

9.8 / 10
CRITICAL
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

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 Analysis

Sandbox breakout vulnerability using async generator in vm2

Basic Information

ID CVE-2026-45411
Source GitHub_M
Published May 13, 2026 at 17:38

Affected Product

Vendor patriksimek
Product vm2
Version < 3.11.3
Affected Versions patriksimek vm2 < 3.11.3

CWE Classification

AI Assessment

AI Score 9.8 / 10
AI Severity Critical
Vendor patriksimek
Product vm2
Version < 3.11.3

References

💭 Join the Security Discussion

🔒 Your email address will not be published. Required fields are marked *

⚠️ Please be respectful and constructive in your comments. Security discussions should remain professional.