Improper Control of Dynamically-Managed Code Resources in vm2 - #VU146045
Published: August 28, 2026
Vulnerability details
The vulnerability allows a remote attacker to execute arbitrary code on the host system.
The vulnerability exists due to improper control of dynamically-managed code resources in NodeVM when accessing host prototype getters through console._stdout or console._stderr and overwriting EventEmitter.prototype.emit. A remote attacker can run crafted code inside the sandbox to execute arbitrary code on the host system.
This issue affects NodeVM instances with console inheritance enabled, which is the default configuration, and can bypass disallow-code-generation-from-strings restrictions.