Improper Control of Dynamically-Managed Code Resources in vm2 - CVE-2026-47131

 

Improper Control of Dynamically-Managed Code Resources in vm2 - CVE-2026-47131

Published: May 18, 2026


Vulnerability identifier: #VU131741
CSH Severity: High
CVSS v4: 9.3 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2026-47131
CWE-ID: CWE-913
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to execute arbitrary code.

The vulnerability exists due to improper control of dynamically-managed code resources in the vm2 sandbox when processing crafted code inside the sandbox. A remote attacker can combine Buffer prototype accessors with Node.js error handling to escape the sandbox and execute arbitrary code.

The issue allows access to the host's TypeError constructor, resulting in a scope change from the sandbox to the host environment.


Affected software

vm2

How to mitigate CVE-2026-47131

Install security update from vendor's website.

vm2 - update to 3.11.4

External References

Related Security Bulletins