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.73% (53rd 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-20044273
  • published22 Sept 2026
  • disclosed18 Sept 2026
  • creditUnknown

Introduced: 18 Sep 2026

NewCVE-2026-93605  (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 NodeVM builtin module denylist in lib/builtin.js, which omits child_process from DANGEROUS_BUILTINS. When a sandbox is configured with require: { builtin: ['*'] }, ['*', '-fs'], or an explicit ['child_process'] allowance (including node:child_process spellings), the real host child_process module is passed through to sandboxed code. A single execSync call then achieves arbitrary command execution on the host, constituting a full sandbox escape to remote code execution.

CVSS Base Scores

version 4.0
version 3.1