Intel

AIKIDO-2026-10036

vm2 is vulnerable to Code Injection

Code Injection Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Jan 14, 2026

91

Critical Risk

This Affects:

JSvm2
3.10.0 - 3.10.0
Fixed in 3.10.1
Are you affected? Scan for Free

TL;DR

Affected versions of vm2 are vulnerable to a sandbox escape via promise callback sanitization bypass because the library did not correctly sanitize promise then/catch callback arguments, allowing untrusted code inside the sandbox to access host-level constructors (e.g., Function) and potentially escape the sandbox protections. PR #547 sanitizes these promise callback arguments so that values from untrusted code cannot leak host objects into the sandbox context, preventing this escape vector.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

vm2 is vulnerable to Code Injection in versions 3.10.0 - 3.10.0.

How to fix this

Upgrade the vm2 library to the patch version.