vm2 is an open source vm/sandbox for Node.js. Prior to 3.11.6, handleException() in lib/setup-sandbox.js sanitizes SuppressedError.error, SuppressedError.suppressed, and AggregateError.errors but does not sanitize Error.cause, allowing sandbox code to obtain a powerful host object such as process from an embedder-exposed host function that throws an error with that object as its cause and then execute arbitrary host commands. This issue is fixed in version 3.11.6.
Security readout for executives and security teams
Plain-English summary
Applications using vm2 before 3.11.6 may fail to contain untrusted JavaScript. Under the documented conditions, sandboxed code can reach a powerful host object and run commands with the Node.js application's privileges, threatening sensitive data, application integrity, and service availability.
Executive priority
Treat as an urgent remediation for any production service executing untrusted code with vm2. Patch immediately where the documented conditions exist; rapidly inventory other systems. Business risk includes application takeover under the service account's permissions, although active exploitation is not established by the supplied evidence.
Technical view
The sandbox exception handler sanitizes several nested error properties but omits Error.cause. If an embedder-exposed host function throws an error whose cause contains a powerful host object such as process, sandboxed code may recover that object, escape isolation, and achieve host command execution. Version 3.11.6 fixes the issue.
Likely exposure
Exposure requires vm2 below 3.11.6 and the ability to execute attacker-controlled sandbox code. The documented escape also depends on an exposed host function returning a powerful object through Error.cause. Internet exposure increases concern but is not stated as mandatory.
Exploitation context
The supplied record marks this CVE as absent from KEV, and no provided source establishes active exploitation. Exploitation is conditional rather than automatic, but the low-complexity sandbox escape can have complete confidentiality, integrity, and availability impact when those conditions exist.
Researcher notes
CVSS 3.1 is 9.9 with network reachability, low complexity, low privileges, no interaction, changed scope, and high impact. Assess exploitability per integration: vulnerable version alone is insufficient; confirm attacker-controlled sandbox execution and a host-function error path capable of exposing a powerful object through Error.cause.
Mitigation direction
Upgrade vm2 to version 3.11.6 or later.
Temporarily prevent untrusted code from executing in affected vm2 sandboxes.
Review embedder-exposed host functions and avoid placing powerful host objects in thrown error causes.
Prioritize systems where sandboxed code is supplied by customers, plugins, or other untrusted sources.
Validation and detection
Inventory direct and transitive vm2 dependencies across source, lockfiles, images, and deployed applications.
Confirm each deployed runtime resolves vm2 version 3.11.6 or later.
Identify whether untrusted users or integrations can submit code to vm2.
Review exposed host functions for errors carrying sensitive objects through Error.cause.
Run safe regression tests confirming host objects cannot cross the sandbox through Error.cause.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cwe · low confidence lookup
CWE-693: Exact CWE lookup
Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
The CVE wording references code or command execution, so execution technique review may help defensive triage. This is a Glexia inferred lookup path, not an official MITRE, ATT&CK, or CVE Program mapping.
The CVE wording references privilege impact, so privilege escalation and authorization behavior review may help. This is a Glexia inferred lookup path, not an official MITRE, ATT&CK, or CVE Program mapping.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
1CVSS vectors
3Timeline events
1ADP providers
4Source links
SSVC decision data
CISA-ADPCISA Coordinator
Timestamp
Version
2.0.3
Exploitation: noneAutomatable: noTechnical Impact: total
CVSS vector scores
1 official score
We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.
CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.
CWE-693 · source CWE mapping
Protection Mechanism Failure
Protection Mechanism Failure represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.