NetSight
critical9.8

CVE-2026-24781

VM2 Has Sandbox Breakout Through Inspect Function

Impact

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.

Affected packages

EcosystemPackageAffectedFixed in
npmvm2<= 3.10.33.11.0

Affected products

VendorProductAffected versions
Vm2 ProjectVm2
before 3.11.0

Weakness classification

References