CVE-2026-92948: Protection Mechanism Failure in patriksimek vm2
vm2 versions from 3.9.6 up to 3.11.6 contain a sandbox escape vulnerability on Node.js 24 and newer. This occurs due to a bypass of the NodeVM builtin allowlist when the embedder explicitly allows the 'node:test' builtin module. The vulnerability allows sandboxed code to execute arbitrary JavaScript on the host Node process outside the sandbox. The issue is fixed in vm2 version 3.11.7.
AI Analysis
Technical Summary
The vm2 library versions >=3.9.6 and <=3.11.6 are vulnerable to a sandbox escape on Node.js 24+ when the embedder allows the 'node:test' builtin module. The vulnerability arises because module.builtinModules exposes a scheme-only key 'node:test' not covered by vm2's family-based DANGEROUS_BUILTINS protection. This key is stored in a generic host-passthrough loader. The requireImpl() function strips a single 'node:' prefix, so requiring 'node:node:test' resolves to the host module, providing a readonly proxy. Calls to node:test.run() spawn a separate Node process with attacker-controlled execArgv, including '--eval=<JavaScript>', enabling arbitrary code execution outside the sandbox. This vulnerability is fixed in vm2 version 3.11.7.
Potential Impact
An attacker with access to the sandbox can bypass vm2's sandbox protections and execute arbitrary JavaScript code on the host Node.js process outside the sandbox environment. This leads to a critical security breach allowing full host compromise via sandbox escape.
Mitigation Recommendations
Upgrade vm2 to version 3.11.7 or later, where this vulnerability is fixed. No other mitigations are specified or recommended.
CVE-2026-92948: Protection Mechanism Failure in patriksimek vm2
Description
vm2 versions from 3.9.6 up to 3.11.6 contain a sandbox escape vulnerability on Node.js 24 and newer. This occurs due to a bypass of the NodeVM builtin allowlist when the embedder explicitly allows the 'node:test' builtin module. The vulnerability allows sandboxed code to execute arbitrary JavaScript on the host Node process outside the sandbox. The issue is fixed in vm2 version 3.11.7.
CVSS v4.0
Score 9.4critical
Affected software
patriksimek
vm2
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vm2 library versions >=3.9.6 and <=3.11.6 are vulnerable to a sandbox escape on Node.js 24+ when the embedder allows the 'node:test' builtin module. The vulnerability arises because module.builtinModules exposes a scheme-only key 'node:test' not covered by vm2's family-based DANGEROUS_BUILTINS protection. This key is stored in a generic host-passthrough loader. The requireImpl() function strips a single 'node:' prefix, so requiring 'node:node:test' resolves to the host module, providing a readonly proxy. Calls to node:test.run() spawn a separate Node process with attacker-controlled execArgv, including '--eval=<JavaScript>', enabling arbitrary code execution outside the sandbox. This vulnerability is fixed in vm2 version 3.11.7.
Potential Impact
An attacker with access to the sandbox can bypass vm2's sandbox protections and execute arbitrary JavaScript code on the host Node.js process outside the sandbox environment. This leads to a critical security breach allowing full host compromise via sandbox escape.
Mitigation Recommendations
Upgrade vm2 to version 3.11.7 or later, where this vulnerability is fixed. No other mitigations are specified or recommended.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- VulnCheck
- Date Reserved
- 2026-09-17T12:43:03.568Z
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 6aac65c555bf5e2cf5fdf68f
Added to database: 09/17/2026, 22:12:21 UTC
Last enriched: 09/17/2026, 22:16:40 UTC
Last updated: 09/18/2026, 02:27:39 UTC
Views: 6
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.