# CVE-2026-92934: vm2 sandbox escape in AggregateError handling

Source: https://junglewise.ai/threats/cve-2026-92934-vm2-sandbox-escape-in-aggregateerror-handling  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-09-17. Updated: 2026-09-26  
License: CC BY 4.0 with a link back

CVE-2026-92934 · Severity: critical · CVSS 9 · Published 2026-09-17

vm2 is a JavaScript sandbox designed to safely isolate untrusted code execution from the host system. A flaw in how it sanitizes exception objects allows attackers to break out of the sandbox and execute arbitrary commands on the host machine with full privileges. The vulnerability occurs when catching specific types of exceptions, enabling an attacker to access the host's file system, environment variables, and run arbitrary processes.

Technologies: [vm2 (npm)](https://junglewise.ai/threats/technologies/vm2). Vendors: [npm](https://junglewise.ai/threats/vendors/npm).

## Quick answers

**Is CVE-2026-92934 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-92934 being exploited in the wild.

**How severe is CVE-2026-92934?** Critical severity, with a CVSS score of 9, published 17 September 2026.

**Which products and versions are affected?** vm2 (npm) <= 3.11.7, SEMVER:introduced=0,fixed=3.11.8.

**Is there a fix for CVE-2026-92934?** Yes. vm2 (npm): upgrade to 3.11.8 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2026-92934 attacked?** It is attacked over the network.

**Am I affected by CVE-2026-92934?** Check whether you run vm2 (npm) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- vm2 (npm): upgrade to 3.11.8 or later

  ```sh
  npm install vm2@3.11.8
  ```


## Technical details

The vulnerability is an incomplete fix bypass affecting Error.cause sanitization in the handleException function (lib/setup-sandbox.js). When an AggregateError object containing host references is revisited within a single exception handler traversal (through self-cycles, mutual-cycles, or duplicate references in the errors array), the cycle detection short-circuit at line 1819 returns the raw unsanitized host proxy instead of the memoized sandbox-realm replacement. This occurs because sanitizeAggregateError rebuilds host-wrapped carriers into fresh LocalAggregateError objects without sealing the original, allowing the live proxy to be re-embedded in the sanitized errors array. Attack requires embedder to expose a host function that throws such a crafted AggregateError; sandbox code catches it and accesses the leak via e.errors[index].property chains, achieving full RCE via child_process.execSync and process information disclosure. Fixed in vm2 3.11.8.

## Affected products

- vm2 vm2 before 3.11.8

## Identifiers

- CVE-2026-92934
- GHSA-x965-fc75-jpqh

## Timeline

- 2026-08-27: disclosed: GHSA-x965-fc75-jpqh published
- 2026-09-17: advisory: CVE-2026-92934 published on NVD
- 2026: patched: Fix released in vm2 3.11.8

## References

- [https://github.com/patriksimek/vm2/security/advisories/GHSA-x965-fc75-jpqh](https://github.com/patriksimek/vm2/security/advisories/GHSA-x965-fc75-jpqh)
- [https://www.vulncheck.com/advisories/vm2-before-3.11.8-sandbox-escape-rce-via-aggregateerror](https://www.vulncheck.com/advisories/vm2-before-3.11.8-sandbox-escape-rce-via-aggregateerror)

## Related threats

- [vm2 NodeVM path bypass in custom resolution](https://junglewise.ai/threats/duplicate-advisory-vm2-nodevm-custom-resolution-bypasses-external-path-5d3a7272)
- [vm2 NodeVM zlib buffer pool information disclosure](https://junglewise.ai/threats/duplicate-advisory-vm2-nodevm-zlib-buffers-expose-pooled-host-memory-6007c734)
- [vm2 host Promise rejection denial of service in construct trap](https://junglewise.ai/threats/duplicate-advisory-vm2-host-promise-rejection-from-an-exposed-f7aba6ba)
- [vm2 sandbox escape via Buffer backing-store ownership bypass](https://junglewise.ai/threats/cve-2026-100723-vm2-before-3-12-2-does-not-apply-its-buffer-backing-store)
- [vm2 unhandled Promise rejection in construct trap](https://junglewise.ai/threats/cve-2026-100722-vm2-before-3-12-2-does-not-apply-host-side-promise-rejection)
