Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSubmit untrusted JS to NodeVM with crypto allowlisted
-
DeliveryCall crypto.setFips(1) on forwarded host module
-
ExploitSanitizer fails to localize side effect
-
ExecutionHost process FIPS mode changed
-
ImpactTrusted host code observes altered crypto state
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V8 - Authorization Access control enforcement
MITRE ATT&CK
1 technique across 1 tactic: Defense Evasion The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires the embedding application to run vm2 (through 3.12.0) as a NodeVM AND to have explicitly allowlisted the Node.js crypto builtin via require.builtin: ['crypto'] - this is a non-default, opt-in configuration. Given that configuration, untrusted guest code needs no authentication or user interaction and can call crypto.setFips() directly. The limiting factors are significant: without the crypto allowlist the builtin is unreachable, and the achievable impact is confined to toggling the host process's FIPS mode (a low integrity/availability effect) rather than arbitrary host code execution or data disclosure. |
| Impact | This is a moderate-severity sandbox-escape/isolation-boundary crossing in vm2, a Node.js code-sandboxing library. The vendor CVSS 4.0 vector (AV:N/AC:L/PR:N/UI:N/VC:N/VI:L/VA:L/SC:N/SI:L/SA:L, 6.9) is internally consistent: no confidentiality impact, low integrity/availability impact on both the sandbox and the host process (subsequent-system SI:L/SA:L reflects the boundary crossing into the host). PR:N is appropriate under vm2's threat model, where guest code is untrusted by design. A patch exists (vm2 3.12.1) and the flaw was reported by VulnCheck with a public advisory (GHSA-x3v6-43hc-82mc) plus a documented reproducing test (getFips flipping 0→1), so publicly available exploit/technical detail exists, though this is NOT active exploitation. No EPSS score, no CISA KEV listing, and no weaponized exploit are provided - absence of these signals plus the limited real-world impact (an attacker can only toggle host FIPS mode, not read data or run arbitrary host code) means this is a lower operational priority than the raw 6.9 suggests. A critical caveat: exploitation is gated on a non-default embedder configuration (require.builtin must explicitly allowlist 'crypto'), which the CVSS vector does not capture and which sharply narrows the realistic attack surface. The impact severity is also debatable - the demonstrated effect is a limited integrity/availability nuisance rather than a full sandbox escape to arbitrary host code execution. |
| Exploit ScenarioDerived | An application embeds vm2 to run untrusted user-supplied JavaScript and has explicitly allowlisted the Node crypto builtin (require.builtin: ['crypto']). Malicious guest code simply calls crypto.setFips(1), which the vm2 builtin sanitizer fails to neutralize (it strips setEngine but not setFips), flipping FIPS mode for the entire host process; trusted host code then observes the altered mode via crypto.getFips(). A public advisory and reproducing test from VulnCheck exist, so the technique is documented, but no active exploitation is reported. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Sep 18, 2026
Sandbox escape in vm2 through 3.12.0 lets untrusted guest code cross the NodeVM isolation boundary and change process-wide state by calling crypto.setFips(), which toggles the FIPS mode of the entire host Node.js process (observed as crypto.getFips() flipping from 0 to 1 in the reporter's test). The vulnerability is only reachable when the embedding application runs vm2 as a NodeVM with the non-default, opt-in configuration require.builtin: ['crypto']; authentication and user interaction are not required in that scenario, and the practical impact is limited to low-integrity and low-availability effects rather than arbitrary host code execution or data disclosure. No public exploit identified at time of analysis; the issue is fixed in vm2 3.12.1, available from the vendor (GHSA-x3v6-43hc-82mc).
RemediationAI
Vendor-released patch: vm2 3.12.1 - upgrade from any version through 3.12.0 to 3.12.1 and re-run your guest-code regression tests, since the fix necessarily changes how the crypto builtin is exposed. If an immediate upgrade is not possible, the most effective compensating control is to remove 'crypto' from the NodeVM require.builtin allowlist so the unsanitized host module is never reachable from guest code; the trade-off is that guest scripts legitimately depending on crypto will throw, so audit guest code first for crypto usage. Where that functionality must be preserved, expose a narrow, curated shim object from the host (for example a wrapper that forwards only hash/HMAC/random functions and omits setFips, setEngine, and other process-global mutators) instead of passing the raw builtin through, accepting the added maintenance burden and the need to review the shim for further unlocalized side effects. Monitor the host process's FIPS state (crypto.getFips()) as a detection signal, and note that once FIPS mode is toggled the effect persists for the life of the process, so only a restart reliably clears it. Refer to https://github.com/patriksimek/vm2/security/advisories/GHSA-x3v6-43hc-82mc and https://www.vulncheck.com/advisories/vm2-3.11.8-sandbox-escape-via-crypto-setfips for the vendor and researcher detail respectively.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
vm2 is a Node.js sandboxing library that isolates untrusted guest code inside a NodeVM. When an embedder explicitly allowlists Node.js builtins via require.builtin, vm2 routes the host module through a builtin sanitizer (sanitizeCryptoModule in lib/builtin.js) and a readonly wrapper intended to expose safe, side-effect-free functionality. That sanitizer overrides crypto.setEngine but omits crypto.setFips, and the readonly wrapper does not localize side effects of forwarded host functions, so the raw host implementation remains callable from guest code. In Node.js, crypto.setFips() and the underlying OpenSSL FIPS mode are process-global state, so a guest invocation mutates the FIPS mode observed by all trusted host code - a classic improper access control failure (CWE-284) in which a sandbox boundary is defeated by an incompletely sanitized API surface. This is mapped to CPE cpe:2.3:a:patriksimek:vm2:*:*:*:*:*:*:*:* covering all releases up to and including 3.12.0, with the ENISA EUVD entry (EUVD-2026-82899) listing affected versions as vm2 0 < 3.12.1. The assessed CVSS:3.1 vector AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:L/A:L confirms that, once the crypto builtin is allowlisted, exploitation requires no privileges or interaction and produces a scope change with low integrity/availability impact but no confidentiality loss.
Know when Vm2 gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:L/SC:N/SI:L/SA:L
Untrusted guest code (PR:N per vm2 threat model) crosses the sandbox boundary into the host process (S:C); only FIPS-mode toggling yields limited integrity/availability impact (I:L/A:L) and no confidentiality loss.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
1DescriptionCVE.org
vm2 through 3.12.0 exposes Node.js's crypto.setFips() function to untrusted guest code when an embedder explicitly allowlists the crypto builtin for a NodeVM (require.builtin: ['crypto']). The builtin sanitizer (sanitizeCryptoModule in lib/builtin.js) replaces crypto.setEngine but leaves crypto.setFips callable, and the readonly wrapper used to expose the host module does not localize side effects of forwarded host functions. Guest code can therefore call crypto.setFips() to change the FIPS mode of the entire host process; the modified mode is subsequently observed by trusted host code (crypto.getFips() changed from 0 to 1 in the reported test), crossing the NodeVM isolation boundary. Fixed in vm2 3.12.1.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.
vm2 is an advanced vm/sandbox for Node.js. Rated critical severity (CVSS 10.0), this vulnerability is remotely exploitab
vm2 is a sandbox that can run untrusted code with Node's built-in modules. Rated critical severity (CVSS 10.0), this vul
vm2 is a sandbox that can run untrusted code with whitelisted Node's built-in modules. Rated critical severity (CVSS 10.
There exists a vulnerability in source code transformer (exception sanitization logic) of vm2 for versions up to 3.9.15,
vm2 is a sandbox that can run untrusted code with whitelisted Node's built-in modules. Rated critical severity (CVSS 10.
This affects the package vm2 before 3.9.4 via a Prototype Pollution attack vector, which can lead to execution of arbitr
Full sandbox escape with arbitrary code execution allows remote attackers to break out of vm2's Node.js sandbox environm
Sandbox escape in vm2 for Node.js allows remote unauthenticated attackers to execute arbitrary commands on the host syst
Sandbox escape in vm2 (patriksimek/vm2) versions prior to 3.11.3 enables remote code execution on the host Node.js proce
Sandbox escape in vm2 Node.js sandbox before 3.10.2 via Promise.prototype.then/catch callback sanitization bypass. PoC a
vm2 is a sandbox that can run untrusted code with whitelisted Node's built-in modules. Rated critical severity (CVSS 9.8
The package vm2 before 3.9.10 are vulnerable to Arbitrary Code Execution due to the usage of prototype lookup for the We
EUVD-2026-82899
GHSA-qrp3-78q3-75rc
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB