vm2 before 3.11.8 Sandbox Escape via NodeVM
patriksimek vm2
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| vm2 npm |
|
|
Original description
vm2 before 3.11.8 contains a sandbox escape vulnerability in NodeVM that allows attackers to access the host __proto__ getter/setter through console._stdout and console._stderr. Attackers can overwrite EventEmitter.prototype.emit and trigger process events to execute code with process context, bypassing code generation restrictions.
From the CVE record · VulnCheck
References
- github.com/patriksimek/vm2/security/advisories/GHSA-88hf-g992-jg85Exploit
- vulncheck.com/advisories/vm2-before-3.11.8-sandbox-escape-via-nodevm
- github.com/CVEProject/cvelistV5/tree/main/cves/2026/92xxx/CVE-2026-92955.json
- nvd.nist.gov/vuln/detail/CVE-2026-92955
- github.com/patriksimek/vm2/commit/22a43704c04b66823b4064b8a16fe1ad54ad0290
- github.com/patriksimek/vm2
- github.com/patriksimek/vm2/blob/v3.11.7/lib/bridge.js#L1963-L1989
- github.com/patriksimek/vm2/blob/v3.11.7/lib/setup-node-sandbox.js#L437-L440
- github.com/patriksimek/vm2/releases/tag/v3.11.8