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

 

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

Published: August 25, 2026 / Updated: September 18, 2026


Vulnerability identifier: #VU145049
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-92946
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 NodeVM require.external handling and resolver logic when loading local files or npm packages without an explicit require.root that excludes node_modules. A remote attacker can require the installed vm2 package, obtain unrestricted NodeVM or VM classes, and execute arbitrary code.

The issue arises because require.root defaults to unrestricted access and require.context defaults to host, causing loaded files to run through the real Node.js require() outside the sandbox.


Affected software

vm2

How to mitigate CVE-2026-92946

Install security update from vendor's website.

vm2 - update to 3.11.7

External References

Related Security Bulletins