vm2 is vulnerable to Improper Authorization
42
Medium Risk
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.
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.
vm2 is vulnerable to Improper Authorization in versions 0.0.1 - 3.11.6.
Upgrade the vm2 library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant