vm2 is vulnerable to Information Disclosure
100
Critical Risk
The default builtin loader exposes the host https.globalAgent, a process-global event emitter, to sandboxed code through a read-only proxy that is insufficient for shared singletons. When https is granted, sandboxed code subscribes to https.globalAgent connection events to capture host request options and attaches listeners to released sockets. This exposes Authorization, Cookie, and API-key headers and plaintext TLS responses from host requests. The fix replaces host-singleton exposure with sandbox-local module facades and Agent instances.
You are affected if you are using a version that falls within the vulnerable range and you grant the sandbox access to the https builtin.
vm2 is vulnerable to Information Disclosure in versions 3.11.3 - 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