Vulnerability · Published Aug 17, 2026 · Assigned by GitHub_M

CVE-2026-47686vm2: Missing Error.cause Sanitization Enables VM2 Sandbox Escape to RCE

Critical 9.9

In plain English

A critical-severity security flaw in vm2 from patriksimek. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.6% (higher than 48% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)9.9Critical
Exploit odds (30 days)0.6%top 52.0% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

vm2 is an open source vm/sandbox for Node.js. Prior to 3.11.6, handleException() in lib/setup-sandbox.js sanitizes SuppressedError.error, SuppressedError.suppressed, and AggregateError.errors but does not sanitize Error.cause, allowing sandbox code to obtain a powerful host object such as process from an embedder-exposed host function that throws an error with that object as its cause and then execute arbitrary host commands. This issue is fixed in version 3.11.6.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
npmvm23.11.6GHSA-m283-3h24-438v

Affected products (as reported)

VendorProductVersions
patriksimek vm2 < 3.11.6

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

References