Uncaught Exception Affecting vm2 package, versions <3.12.2


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.26% (16th 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 Learn

Learn about Uncaught Exception vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-VM2-20158390
  • published27 Sept 2026
  • disclosed27 Sept 2026
  • creditUnknown

Introduced: 27 Sep 2026

NewCVE-2026-100722  (opens in a new tab)
CWE-248  (opens in a new tab)

How to fix?

Upgrade vm2 to version 3.12.2 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 Uncaught Exception via the host-to-sandbox promise delivery path in lib/bridge.js, where a host promise reaching the sandbox through the construct trap, a host getter or data property, or as an argument to a sandbox callback carries no rejection reaction. When sandbox code ignores such a promise, Node's unhandledRejection policy is triggered, terminating the host process. An attacker controlling sandbox code can cause this condition through any of those delivery routes without requiring filesystem access, a Node builtin, nested VMs, or host compromise.

References

CVSS Base Scores

version 4.0
version 3.1