Intel

AIKIDO-2026-886598

vm2 is vulnerable to Remote Code Execution

Remote Code ExecutionGHSA-c48m-32m9-vx93 Published Yesterday

99

Critical Risk

This Affects:

JSvm2
0.0.1 - 3.11.6
Fixed in 3.11.7
Are you affected? Scan for Free

TL;DR

The allowlist pre-check for require.external combined with a custom resolve callback validates package names with a non-anchored regular expression, matching a substring rather than the full name. Sandboxed code requests a package whose name contains an allowlisted name as a substring, so the resolver loads an unauthorized host package. Loading the colliding package can execute arbitrary code in the host context. The fix enforces exact-match validation of the external allowlist.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you use require.external with a custom module resolver and allowlist.

Background info

vm2 is vulnerable to Remote Code Execution in versions 0.0.1 - 3.11.6.

How to fix this

Upgrade the vm2 library to the patch version.