Intel

AIKIDO-2026-391736

vm2 is vulnerable to Sandbox Escape

Sandbox EscapeGHSA-98xx-8mx4-x7cm Published Yesterday

100

Critical Risk

This Affects:

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

TL;DR

The default builtin loader exposes the tls module through a read-only bridge that blocks property assignment but still permits calls to tls.setDefaultCACertificates(), which mutates the process-wide default certificate authority list. By chaining the tls and url builtins, sandboxed code builds a host-realm array of certificate data that passes the native type check. It then replaces the certificate authorities trusted by later host HTTPS clients, enabling credential theft and traffic tampering. The fix blocks the sandbox from mutating the host default trust store.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you expose the tls and url builtins to the sandbox.

Background info

vm2 is vulnerable to Sandbox Escape in versions 3.11.3 - 3.11.6.

How to fix this

Upgrade the vm2 library to the patch version.