Code Injection in vm2 - #VU129592
Published: May 4, 2026
vm2
Detailed vulnerability description
The vulnerability allows a remote attacker to execute arbitrary code.
The vulnerability exists due to improper control of code generation in the vm2 sandbox when processing crafted JavaScript code. A remote attacker can supply specially crafted code to escape the sandbox and execute arbitrary code.
The issue allows access to host objects outside the intended sandbox boundary.