Incorrect authorization in vm2 - #VU129589
Published: May 4, 2026
vm2
Detailed vulnerability description
The vulnerability allows a remote user to execute arbitrary code on the host system.
The vulnerability exists due to improper access control in the NodeVM builtin allowlist handling for the module builtin when processing sandboxed code that can require builtins. A remote user can invoke Module._load() through the allowed module builtin to execute arbitrary code on the host system.
Exploitation requires the module builtin to be allowed, including through the '*' wildcard, and results in a sandbox escape into the host context.