vm2 is vulnerable to Arbitrary Code Execution. The vulnerability exists because the transformer
function of transformer.js
allows remote attackers to bypass handleException()
and leak unsanitized host exceptions to escape the sandbox and run arbitrary code in the host context.
gist.github.com/leesh3288/f05730165799bf56d70391f3d9ea187c
github.com/advisories/GHSA-xj72-wvfv-8985
github.com/patriksimek/vm2/commit/24c724daa7c09f003e556d7cd1c7a8381cb985d7
github.com/patriksimek/vm2/issues/516
github.com/patriksimek/vm2/releases/tag/3.9.16
github.com/patriksimek/vm2/security/advisories/GHSA-xj72-wvfv-8985