Protection Mechanism Failure Affecting vm2 package, versions <3.12.1


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.35% (26th 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-20044269
  • published22 Sept 2026
  • disclosed18 Sept 2026
  • creditRex Liu, Jace

Introduced: 18 Sep 2026

NewCVE-2026-93604  (opens in a new tab)
CWE-693  (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 Protection Mechanism Failure via sanitizeCryptoModule in lib/builtin.js, where a NodeVM that allowlists the crypto builtin exposes crypto.setFips through a read-only wrapper that blocks property writes but forwards host calls with full authority. Guest code inside the sandbox can invoke crypto.setFips() to flip the FIPS mode of the entire host process, mutating process-wide cryptographic configuration that is subsequently observed by trusted host code. This is the same process-wide-mutator class as crypto.setEngine, which was already neutralized in the same function.

CVSS Base Scores

version 4.0
version 3.1