Intel

AIKIDO-2026-160515

vm2 is vulnerable to Sandbox Escape

Sandbox EscapeGHSA-x965-fc75-jpqh Published 3 days ago

90

Critical Risk

This Affects:

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

TL;DR

The exception sanitizer that redacts host references from errors thrown out of the sandbox short-circuits when it revisits an object already seen in the same traversal. For a host wrapped AggregateError carrier, the revisit path returns the raw host object instead of the sanitized copy. Sandboxed code uses this to obtain a live host reference from a caught error and execute arbitrary commands on the host. The fix adds two-phase sanitization with cycle memoization and suppressed error carriers so raw host objects are no longer returned.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you execute untrusted JavaScript in a NodeVM sandbox.

Background info

vm2 is vulnerable to Sandbox Escape in versions 0.0.1 - 3.11.7.

How to fix this

Upgrade the vm2 library to the patch version.

Are You Affected?

Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.

Free. No credit card required.

Aikido Platform