Skip to main content

vm2 EUVDEUVD-2026-82899

| CVE-2026-93604 MEDIUM
Improper Access Control (CWE-284)
2026-09-18 VulnCheck GHSA-qrp3-78q3-75rc
6.9
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Submit untrusted JS to NodeVM with crypto allowlisted
  2. Delivery
    Call crypto.setFips(1) on forwarded host module
  3. Exploit
    Sanitizer fails to localize side effect
  4. Execution
    Host process FIPS mode changed
  5. Impact
    Trusted 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

vm2 0 <3.12.1

Affected Packages

euvd vm2 fix: 3.12.1

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

Vendor (VulnCheck) PRIMARY 6.9 MEDIUM
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
vuln.today AI 7.2 HIGH

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.

3.1 AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:L/A:L
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:L/SC:N/SI:L/SA:L
Red Hat 7.2 HIGH

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
Low
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
Low
Subsequent system: Availability
Low

Lifecycle Timeline

1
Patch available
Sep 18, 2026 - 14:02 EUVD

DescriptionCVE.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

EPSS Score
0.3%
Top 83% exploitable
Prevalence
Medium
vm2 widely used Node sandbox library but now deprecated and config-gated
Data Quality
4 sources
Confidence: Medium
EUVD NVD CVE.org EPSS Vulnrichment Vendor GitHub

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
Yes
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

34
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +34
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

More in Vm2

View all
CVE-2023-37466 CRITICAL POC
10.0 Jul 14

vm2 is an advanced vm/sandbox for Node.js. Rated critical severity (CVSS 10.0), this vulnerability is remotely exploitab

CVE-2023-32314 CRITICAL POC
10.0 May 15

vm2 is a sandbox that can run untrusted code with Node's built-in modules. Rated critical severity (CVSS 10.0), this vul

CVE-2023-30547 CRITICAL POC
10.0 Apr 17

vm2 is a sandbox that can run untrusted code with whitelisted Node's built-in modules. Rated critical severity (CVSS 10.

CVE-2023-29199 CRITICAL POC
10.0 Apr 14

There exists a vulnerability in source code transformer (exception sanitization logic) of vm2 for versions up to 3.9.15,

CVE-2022-36067 CRITICAL POC
10.0 Sep 06

vm2 is a sandbox that can run untrusted code with whitelisted Node's built-in modules. Rated critical severity (CVSS 10.

CVE-2021-23449 CRITICAL POC
10.0 Oct 18

This affects the package vm2 before 3.9.4 via a Prototype Pollution attack vector, which can lead to execution of arbitr

CVE-2026-26956 CRITICAL POC
9.8 May 04

Full sandbox escape with arbitrary code execution allows remote attackers to break out of vm2's Node.js sandbox environm

CVE-2026-24120 CRITICAL POC
9.8 May 04

Sandbox escape in vm2 for Node.js allows remote unauthenticated attackers to execute arbitrary commands on the host syst

CVE-2026-45411 CRITICAL POC
9.8 May 13

Sandbox escape in vm2 (patriksimek/vm2) versions prior to 3.11.3 enables remote code execution on the host Node.js proce

CVE-2026-22709 CRITICAL POC
9.8 Jan 26

Sandbox escape in vm2 Node.js sandbox before 3.10.2 via Promise.prototype.then/catch callback sanitization bypass. PoC a

CVE-2023-29017 CRITICAL POC
9.8 Apr 06

vm2 is a sandbox that can run untrusted code with whitelisted Node's built-in modules. Rated critical severity (CVSS 9.8

CVE-2022-25893 CRITICAL POC
9.8 Dec 21

The package vm2 before 3.9.10 are vulnerable to Arbitrary Code Execution due to the usage of prototype lookup for the We

Vendor StatusVendor

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy