CVE-2026-92937: vm2 3.11.6 Remote Code Execution via Promise call/apply

Published Sep 17, 2026
·
Updated

vm2 3.11.6 is vulnerable to a sandbox escape leading to remote code execution in the host Node.js process. The fix for GHSA-m283-3h24-438v is incomplete: the bridge gate at lib/bridge.js:1624 identity-checks only the direct call target when deciding whether to rebuild/sanitise a rejected host Promise value. Registering the rejection handler through Function.prototype.call or .apply indirection (e.g., p.then.call(p, undefined, cb)) makes the intercepted target host Function.prototype.call, so the sanitiser never runs and the raw host error reaches sandbox code with its own properties intact. If an embedder exposes a host-realm Promise to the sandbox (an async host function bridged via the sandbox option, or a NodeVM external module's async method) and that Promise rejects with an Error carrying a non-primitive own property referencing a host object (for example err.detail = process), untrusted code in the sandbox obtains a fully functional proxy to that host object and can execute arbitrary commands with the privileges of the host process (e.g., e.detail.mainModule.require('childprocess').execSync(...)). The direct p.then(undefined, cb), bind, and Reflect.apply forms are correctly sanitised. Fixed in vm2 3.11.7.

Affected Software

1 affected component
vm2 vm2>=3.11.6<=3.11.6

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade vm2 to a version that resolves this vulnerability.

    Fixed in 3.11.7Patch GHSA-m283-3h24-438v

Event History

Sep 17, 2026
CVE Published
via MITRE·01:46 PM
Data Sourced
via MITRE·01:46 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which deployments are exposed to this issue?

Deployments are exposed when vm2 bridges a host-realm Promise into untrusted sandbox code, such as through an async host function supplied in the sandbox option or an async method in a NodeVM external module. Exploitation additionally requires that the Promise reject with an Error containing a non-primitive own property that references a host object.

2

Does an attacker need credentials or user interaction to exploit this?

No. The supplied vector indicates network-reachable, low-complexity exploitation with no privileges or user interaction required, provided the application exposes the required bridged Promise and rejection behavior to attacker-controlled sandbox code.

3

What rejection-handler patterns are affected?

The affected path registers a rejection handler through Function.prototype.call or apply indirection, such as p.then.call(p, undefined, cb). Direct p.then(undefined, cb), bind, and Reflect.apply forms are described as correctly handled.

4

What is the impact if exploitation succeeds?

Sandbox code can obtain a functional proxy to a host object exposed through an Error property and execute arbitrary commands with the privileges of the host Node.js process. The stated impact includes complete confidentiality, integrity, and availability compromise.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203