CVE-2026-92938: Protection Mechanism Failure in patriksimek vm2
A protection mechanism failure in patriksimek vm2 versions 3.11.3 through 3.11.6 allows sandboxed code to execute arbitrary native code in the host process. This occurs because the Node.js host module node:sqlite is exposed and can be accessed via a crafted module request, enabling loading of native extensions with host privileges. The vulnerability is fixed in version 3.11.7.
AI Analysis
Technical Summary
In patriksimek vm2 versions 3.11.3 through 3.11.6, the Node.js builtin module node:sqlite is exposed to sandboxed code running in NodeVM when builtin modules are permitted. The module is wrapped with vm.readonly(), preventing property assignment but leaving callable host functions accessible. The module resolver treats requests starting with 'node:' as core modules and strips only one 'node:' prefix, allowing a sandboxed request for 'node:node:sqlite' to resolve to the node:sqlite module. This enables sandboxed code to create an in-memory DatabaseSync with extension loading enabled and call DatabaseSync.loadExtension() on a native library bundled in the untrusted plugin package. As a result, SQLite loads the native library into the host Node.js process and executes its native entry point, granting arbitrary native code execution outside the sandbox with host privileges. The issue is resolved in vm2 version 3.11.7.
Potential Impact
Sandboxed code can bypass vm2's isolation and execute arbitrary native code within the host Node.js process, potentially leading to full compromise of the host environment with the privileges of the Node.js process. This represents a critical security risk for applications relying on vm2 for sandboxing untrusted code.
Mitigation Recommendations
Upgrade vm2 to version 3.11.7 or later, where this vulnerability is fixed. No other mitigations are indicated. Patch status is confirmed by the vendor advisory stating the fix is in 3.11.7.
CVE-2026-92938: Protection Mechanism Failure in patriksimek vm2
Description
A protection mechanism failure in patriksimek vm2 versions 3.11.3 through 3.11.6 allows sandboxed code to execute arbitrary native code in the host process. This occurs because the Node.js host module node:sqlite is exposed and can be accessed via a crafted module request, enabling loading of native extensions with host privileges. The vulnerability is fixed in 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
In patriksimek vm2 versions 3.11.3 through 3.11.6, the Node.js builtin module node:sqlite is exposed to sandboxed code running in NodeVM when builtin modules are permitted. The module is wrapped with vm.readonly(), preventing property assignment but leaving callable host functions accessible. The module resolver treats requests starting with 'node:' as core modules and strips only one 'node:' prefix, allowing a sandboxed request for 'node:node:sqlite' to resolve to the node:sqlite module. This enables sandboxed code to create an in-memory DatabaseSync with extension loading enabled and call DatabaseSync.loadExtension() on a native library bundled in the untrusted plugin package. As a result, SQLite loads the native library into the host Node.js process and executes its native entry point, granting arbitrary native code execution outside the sandbox with host privileges. The issue is resolved in vm2 version 3.11.7.
Potential Impact
Sandboxed code can bypass vm2's isolation and execute arbitrary native code within the host Node.js process, potentially leading to full compromise of the host environment with the privileges of the Node.js process. This represents a critical security risk for applications relying on vm2 for sandboxing untrusted code.
Mitigation Recommendations
Upgrade vm2 to version 3.11.7 or later, where this vulnerability is fixed. No other mitigations are indicated. Patch status is confirmed by the vendor advisory stating the fix is in 3.11.7.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- VulnCheck
- Date Reserved
- 2026-09-17T12:42:34.828Z
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 6aac65c355bf5e2cf5fdf67e
Added to database: 09/17/2026, 22:12:19 UTC
Last enriched: 09/17/2026, 22:16:23 UTC
Last updated: 09/18/2026, 01:25:42 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.