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.
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
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| npm | vm2 | 3.11.0 | GHSA-v37h-5mfm-c47c |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| 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
- https://github.com/patriksimek/vm2/security/advisories/GHSA-v37h-5mfm-c47c x_refsource_CONFIRM
- https://github.com/patriksimek/vm2/commit/8d30d93213c1898b3e035298b89a814970dd1189 x_refsource_MISC
- https://github.com/patriksimek/vm2/commit/bdd3d15e57bc4ec5e70365cd79f7cb0256e5f88c x_refsource_MISC
- https://github.com/patriksimek/vm2/commit/fd266d084e0a3322d0f71ba2a8dc4c96cd030228 x_refsource_MISC
- https://github.com/patriksimek/vm2/releases/tag/v3.11.0 x_refsource_MISC
- https://access.redhat.com/security/cve/CVE-2026-24781 vdb-entry, x_refsource_REDHAT
- RHBZ#2466531 issue-tracking, x_refsource_REDHAT
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-24781.json x_sadp-csaf-vex
- https://access.redhat.com/errata/RHSA-2026:36754 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:26234 vendor-advisory, x_refsource_REDHAT