Improper Control of Dynamically-Managed Code Resources Affecting vm2 package, versions <3.12.1


Severity

Recommended
0.0
critical
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.71% (52nd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JS-VM2-20044271
  • published22 Sept 2026
  • disclosed18 Sept 2026
  • creditUnknown

Introduced: 18 Sep 2026

NewCVE-2026-93606  (opens in a new tab)
CWE-913  (opens in a new tab)

How to fix?

Upgrade vm2 to version 3.12.1 or higher.

Overview

vm2 is a sandbox that can run untrusted code with whitelisted Node's built-in modules.

Affected versions of this package are vulnerable to Improper Control of Dynamically-Managed Code Resources via the Promise @@species constructor lookup in lib/bridge.js. When sandbox code invokes then, catch, or finally on a host Promise, V8's SpeciesConstructor reads constructor[@@species] off the raw host promise with no bridge trap intercepting it, allowing a sandbox-controlled species to receive the raw host settlement and escape the sandbox boundary. An attacker can exploit this to achieve full host environment compromise, including arbitrary code execution with the privileges of the host process.

CVSS Base Scores

version 4.0
version 3.1