9.9Critical

CVE-2026-43999vm2: NodeVM builtin allowlist bypass via `module` builtin's `Module._load` allows sandbox escape

patriksimek vm2; Red Hat Red Hat Ansible Automation Platform 2.1; Red Hat Red Hat Developer Hub Published: (6 months ago)

Description

vm2 is an open source vm/sandbox for Node.js. Prior to 3.11.0, NodeVM's builtin allowlist can be bypassed when the module builtin is allowed (including via the '*' wildcard). The module builtin exposes Node's Module._load(), which loads any module by name directly in the host context, completely bypassing vm2's builtin restriction. This allows sandboxed code to load excluded builtins like child_process and achieve remote code execution. This vulnerability is fixed in 3.11.0.

Weakness (CWE): CWE-863CWE-829

Data: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Published as the sources state it, in English.

Affected products and versions

VendorProductVersions
patriksimek vm2 < 3.11.0
Red Hat Red Hat Ansible Automation Platform 2.1 all versions
Red Hat Red Hat Developer Hub —
vm2 project vm2 < 3.11.0

References and patches

CPE matches (NVD) (1)

  • cpe:2.3:a:vm2_project:vm2:*:*:*:*:*:node.js:*:* < 3.11.0