Vulnerability · Published May 4, 2026 · Assigned by GitHub_M

CVE-2026-24781vm2: Sandbox Breakout Through Inspect

Critical 9.8

In plain English

A critical-severity code injection in vm2 from patriksimek. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 1.2% (higher than 68% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)9.8Critical
Exploit odds (30 days)1.2%top 32.0% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
npmvm23.11.0GHSA-v37h-5mfm-c47c

Affected products (as reported)

VendorProductVersions
patriksimek vm2 < 3.11.0

Weakness: CWE-94, CWE-693, CWE-653 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

References