CVE-2026-47140

vm2: NodeVM builtin denylist bypass via process and inspector/promises allows host code execution

Published Jun 12, 2026 CVSS 3.1 · 10 Critical EPSS < 1% KEV · Not listed
Description
vm2 is an open source vm/sandbox for Node.js. Prior to version 3.11.4, NodeVM blocks several dangerous Node.js builtins such as module, worker_threads, cluster, vm, repl, and inspector. However, the denylist misses process and inspector/promises. Both can be used from sandboxed code to reach host-side execution primitives. This allows sandboxed code to bypass the intended builtin restrictions and execute code in the host process. This issue has been patched in version 3.11.4.

Analysis

AI-generated

Technical impact

The vulnerability is a denylist bypass in the NodeVM built‑in system of the vm2 sandbox. The denylist, which should block dangerous Node.js built‑ins, omits the process object and the inspector/promises namespace. Code executed inside the sandbox can therefore obtain references to these host references, allowing it to run arbitrary code with the privileges of the host process. This represents a full remote code execution flaw, categorized under CWE‑184 and CWE‑693.

Affected Systems

The vulnerability affects the patriksimek:vm2 library for Node.js. Any installation of vm2 earlier than version 3.11.4 is susceptible. The patch was applied in the 3.11.4 release. Systems that embed vm2 to isolate untrusted JavaScript or other scripting languages are at risk if they are running these older versions.

Risk and Exploitability

The CVSS score of 10 indicates extremely high severity. The EPSS score of less than 1% reflects a low‑but‑present probability of exploitation at the time of this assessment, and the issue is not listed in CISA KEV. Likely exploitation requires the ability to inject or run sandboxed code; an attacker could craft a payload that accesses the process or inspector/promises objects to escape the sandbox and execute host‑side code. Because the denial bypass is a logical flaw rather than a misconfiguration, any code supplied to NodeVM can potentially trigger it.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade vm2 to version 3.11.4 or later
  • Confirm that the NodeVM denylist now excludes process and inspector/promises before accepting new sandboxed code
  • Audit all code paths that provide untrusted input to NodeVM and remove or harden any that rely on sandboxed execution

Generated by OpenCVE AI on June 17, 2026 at 23:29 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-rp36-8xq3-r6c4 NodeVM builtin denylist bypass via process and inspector/promises allows host code execution
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Patriksimek
Patriksimek vm2
Vendors & Products Patriksimek
Patriksimek vm2
Type Values Removed Values Added
Description vm2 is an open source vm/sandbox for Node.js. Prior to version 3.11.4, NodeVM blocks several dangerous Node.js builtins such as module, worker_threads, cluster, vm, repl, and inspector. However, the denylist misses process and inspector/promises. Both can be used from sandboxed code to reach host-side execution primitives. This allows sandboxed code to bypass the intended builtin restrictions and execute code in the host process. This issue has been patched in version 3.11.4.
Title vm2: NodeVM builtin denylist bypass via process and inspector/promises allows host code execution
Weaknesses CWE-693
References
Metrics cvssV3_1

{'score': 10, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H'}

Weaknesses
  • CWE-184

    Incomplete List of Disallowed Inputs

  • CWE-693

    Protection Mechanism Failure

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Jun 13, 2026, 3:55 AM
Reserved
May 18, 2026, 7:50 PM
Status
Deferred
Published
Jun 12, 2026, 3:16 PM
Modified
Oct 26, 2026, 11:10 AM
Severity
Moderate
Public date
Jun 12, 2026, 2:16 PM