CVE-2026-92939patriksimek vm2
Native code execution in vm2 via crypto.setEngine()
Critical 9.4
Follow: this CVE · patriksimek · patriksimek vm2 We alert you by email or Slack (account required).
- Priority
- 56
- CVSS 4.0
- 9.4
- EPSS
- —
- Auth required
- Yes
- Published
- Sep 17, 2026
- Updated
- Sep 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-114
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: no · Technical impact: total
- Vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
What happens
vm2 versions 3.11.3 through 3.11.6 expose the Node.js crypto module to the NodeVM sandbox, allowing sandboxed JavaScript to call crypto.setEngine() with paths to attacker-supplied native libraries. An authenticated attacker can load arbitrary compiled libraries that execute native code in the host process, escaping the sandbox without requiring access to fs, process, or similar modules.
Show the original NVD text
vm2 3.11.3 through 3.11.6 exposes the host Node.js crypto module to a NodeVM sandbox when the crypto builtin is allowed. The module is presented via a recursive read-only proxy, but its callable exports still execute with host-process authority. Sandboxed JavaScript can therefore call crypto.setEngine() with a filesystem path to an attacker-supplied native library (for example, one bundled in an untrusted plugin package already written to disk); OpenSSL asks the operating-system dynamic loader to load the file, and the library's constructor executes native code in the host process before engine-symbol validation rejects it. Exploitation requires only the crypto builtin and does not require fs, process, module, child_process, worker_threads, vm, or inspector access, resulting in a sandbox escape and arbitrary native code execution. Fixed in 3.11.7.
What to do
Patch available · fixed versions: 3.11.7
Update vm2 to version 3.11.7 or later to patch the sandbox escape vulnerability.
- Apply the vendor's security update for vm2.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| npm | vm2 |
≥ 3.11.3 < 3.11.7 |
3.11.7 |
npm install vm2@3.11.7 |
Per OSV / GitHub Advisories (GHSA-46pr-c5wc-xffx). Check the version in your lockfile before upgrading.
Affected products
- patriksimek · vm2
As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.
Official sources
References
Links published by the sources. Open them with care.