Intel

AIKIDO-2026-594672

vm2 is vulnerable to Improper Authorization

Improper AuthorizationGHSA-7q3f-wx44-378m Published Yesterday

42

Medium Risk

This Affects:

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

TL;DR

The external module allowlist decides whether a resolved path belongs to an allowlisted module using a raw prefix comparison with no path-separator anchoring. A sibling package whose name shares a prefix with an allowlisted module is therefore treated as allowlisted. Code running under an allowlist with transitive loading disabled can reach non-allowlisted packages through relative requires. The fix anchors the comparison on the path separator so only the intended module directory matches.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range, use NodeVM with an external module allowlist, and have transitive loading disabled while executing untrusted guest code.

Background info

vm2 is vulnerable to Improper Authorization in versions 0.0.1 - 3.11.6.

How to fix this

Upgrade the vm2 library to the patch version.