CVE-2026-92954patriksimek vm2
Denial of Service in vm2 via Unhandled Host Promises
Critical 9.2 No auth needed
Follow: this CVE · patriksimek · patriksimek vm2 We alert you by email or Slack (account required).
- Priority
- 70
- CVSS 4.0
- 9.2
- EPSS
- —
- Auth required
- No
- Published
- Sep 17, 2026
- Updated
- Sep 21, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-248
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: yes · Technical impact: partial
- Vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/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.10.0 through 3.11.7 fail to mark rejected Promises returned from the host realm as handled at the sandbox boundary. An attacker can invoke host functions returning rejected Promises and ignore the return value, leaving the Promise unhandled and causing Node.js to terminate the host process.
Show the original NVD text
vm2 is a sandbox library for running untrusted JavaScript in Node.js. In versions >= 3.10.0 and <= 3.11.7, Promises returned from the host realm into the sandbox are not marked as handled at the bridge boundary; only Promises created inside the sandbox are wrapped with a rejection-swallowing handler (lib/setup-sandbox.js), and the bridge only installs host-side rejection sanitizers when sandbox code calls .then/.catch/.finally. As a result, code running in the sandbox can invoke a host function that returns a rejected Promise (for example events.once() exposed via the NodeVM events builtin, or any embedder-provided Promise-returning API) and simply ignore the return value, leaving the host Promise unhandled so that Node.js's default unhandled-rejection behavior terminates the host process. This is an incomplete fix of GHSA-hw58-p9xv-2mjh. The issue is fixed in version 3.11.8.
What to do
Patch available · fixed versions: 3.11.8
Update vm2 to version 3.11.8 or later.
- Apply the vendor's security update for vm2.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| npm | vm2 |
≥ 3.10.0 < 3.11.8 |
3.11.8 |
npm install vm2@3.11.8 |
Per OSV / GitHub Advisories (GHSA-gjq8-xm47-88rc). 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.