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


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-20043647
  • published22 Sept 2026
  • disclosed17 Sept 2026
  • creditArthur

Introduced: 17 Sep 2026

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

How to fix?

Upgrade vm2 to version 3.11.8 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 process. An attacker can execute arbitrary code in the host environment by accessing the host __proto__ getter/setter through console._stdout and console._stderr, overwriting EventEmitter.prototype.emit, and triggering process events to bypass code generation restrictions.

CVSS Base Scores

version 4.0
version 3.1