---
id: CVE-2026-24781
title: vm2 is an open source vm/sandbox for Node.js
summary: >-
  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 …
severity: critical
cvss: 9.8
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'
cwe:
  - CWE-94
  - CWE-693
  - CWE-653
vendor: vm2_project
product: vm2
affected:
  - vm2 < 3.11.0
patched:
  - vm2 3.11.0
published: '2026-05-04'
updated: '2026-07-09'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-24781'
references:
  - url: >-
      https://github.com/patriksimek/vm2/commit/8d30d93213c1898b3e035298b89a814970dd1189
    label: security-advisories@github.com
  - url: >-
      https://github.com/patriksimek/vm2/commit/bdd3d15e57bc4ec5e70365cd79f7cb0256e5f88c
    label: security-advisories@github.com
  - url: >-
      https://github.com/patriksimek/vm2/commit/fd266d084e0a3322d0f71ba2a8dc4c96cd030228
    label: security-advisories@github.com
  - url: 'https://github.com/patriksimek/vm2/releases/tag/v3.11.0'
    label: security-advisories@github.com
  - url: 'https://github.com/patriksimek/vm2/security/advisories/GHSA-v37h-5mfm-c47c'
    label: security-advisories@github.com
  - url: 'https://access.redhat.com/errata/RHSA-2026:26234'
    label: 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
  - url: 'https://access.redhat.com/errata/RHSA-2026:36754'
    label: 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
  - url: 'https://access.redhat.com/security/cve/CVE-2026-24781'
    label: 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2466531'
    label: 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
  - url: >-
      https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-24781.json
    label: 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
tags:
  - nvd
epss: 0.01186
epssPercentile: 0.65994
ingestedAt: '2026-07-10T01:55:23.202Z'
---

## Overview

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

- `vm2 < 3.11.0`

## Remediation

Upgrade past the affected range:

- `vm2 3.11.0`
