Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessLoad malicious plugin into NodeVM
-
DeliveryRequest node:node:sqlite via double-prefix bypass
-
ExploitOpen in-memory DatabaseSync with extensions enabled
-
ExecutionCall loadExtension() on bundled native library
-
PersistSQLite dlopen executes native entry point
-
ImpactArbitrary native code as host process
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V15 - Secure Coding and Architecture Protection mechanism completeness
|
| Exploitation Conditions | Requires all of: (1) the application runs untrusted/attacker-supplied code in vm2's NodeVM (the vm2 threat model); (2) the host node:sqlite builtin is exposed to the sandbox, either listed explicitly or via the wildcard builtin: ['*'] - this is not a default; (3) SQLite extension loading is enabled on the DatabaseSync instance; and (4) an attacker-controlled native library (.so/.dll) is present on disk within the plugin package, reachable via a __dirname-derived path. Limiting factors: node:sqlite must be permitted (non-default), the attacker must be able to place a native binary alongside the plugin, and affected versions are narrowly 3.11.3 through 3.11.6 (fixed 3.11.7). Not exploitable against default vm2 configurations that do not expose node:sqlite. |
| Impact | This is a genuine high-severity issue within its threat model but its real-world priority is strongly gated by configuration. The vendor CVSS 4.0 vector (AV:N/AC:L/PR:L/UI:N, all impacts High with scope change SC/SI/SA:H, score 9.4) reflects a full sandbox escape to host-privilege native code execution - accurate in impact but the AC:L is optimistic given the exploit requires chaining the vm.readonly() callable-reachability gap, the node:node:sqlite double-prefix resolver quirk, and enabling SQLite extension loading. Crucially, exploitation is NOT possible against default configurations: the host node:sqlite builtin must be permitted (explicitly or via builtin:['*']) AND an attacker-controlled native library must already be on disk inside the untrusted plugin package. There is no EPSS score, no CISA KEV listing, and no public exploit code identified in the provided sources, so this is no public exploit identified at time of analysis - not evidence of active exploitation. Signals are internally consistent (vendor advisory + VulnCheck agree on network vector and RCE outcome); the main tension is that AC:L understates the multi-step nature of the bypass. Net: a real priority ONLY for deployments that run untrusted plugins in NodeVM with the node:sqlite builtin exposed; for everyone else it is a high-CVSS-but-conditional finding. vm2 is also deprecated/unmaintained, so the practical remediation is migration off vm2 rather than solely upgrading to 3.11.7. |
| Exploit ScenarioDerived | An application uses vm2's NodeVM to run untrusted third-party plugins and has permitted the node:sqlite builtin (directly or via builtin:['*']). A malicious plugin ships a native library in its package, then from the sandbox requests node:node:sqlite (bypassing the single-prefix strip), opens an in-memory DatabaseSync with extension loading enabled, and calls loadExtension() on its bundled .so/.dll using a __dirname-derived path - causing SQLite to load and execute the library's native entry point in the host process. No public exploit code is identified at time of analysis, though the mechanism is fully described in the advisory. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Sep 17, 2026
Native code execution outside the sandbox affects vm2 versions 3.11.3 through 3.11.6 when the host node:sqlite builtin is exposed to a NodeVM sandbox - either explicitly or through the wildcard builtin: ['*'] - which is not a default configuration. Sandboxed plugin code can create an in-memory DatabaseSync with extension loading turned on, resolve an attacker-supplied native library via a __dirname-derived path, and call loadExtension(), causing SQLite to load that library into the Node.js host process and execute its native entry point with host privileges; the vm.readonly() wrapper prevents property assignment but leaves host-authority callables reachable, and a 'node:node:sqlite' double-prefix quirk in the resolver/prefix-stripping logic lets the sandbox reach the configured builtin. There is no public exploit identified at time of analysis and no confirmed active exploitation (CISA KEV) - the vendor released vm2 3.11.7 to fix it. Real-world priority is strongly gated by configuration: exploitation requires all of permitting node:sqlite in the sandbox, enabling SQLite extension loading, and having an attacker-controlled .so/.dll on disk within the plugin package.
RemediationAI
Vendor-released patch: upgrade to vm2 3.11.7, which fixes the issue (advisory: https://github.com/patriksimek/vm2/security/advisories/GHSA-6w8r-xxw2-g3hx). If upgrading cannot be done immediately, the most effective compensating control is to stop exposing node:sqlite to sandboxes: remove 'node:sqlite' from any explicit builtin allowlist and replace broad builtin: ['*'] grants with a minimal, enumerated allowlist - the trade-off is that legitimate plugins relying on those builtins will break and must be individually re-permitted. Also disable SQLite extension loading on DatabaseSync instances used anywhere near the sandbox (do not enable extension loading), and normalize/deny nested 'node:' prefixes (e.g., 'node:node:sqlite') in any custom resolver or wrapper layer, since the single-strip behavior is the reachability bug; both measures reduce functionality for plugins that legitimately load extensions. Finally, treat the plugin package directory as untrusted input: ensure no attacker-controlled native binaries (.so/.dll) can be written alongside plugins or be reachable from a __dirname-derived path, and where feasible run sandboxed workloads in a separate low-privilege process or container so that native library loading cannot inherit host process privileges. Because exploitation requires an untrusted-code-in-sandbox deployment plus non-default builtin exposure, organizations that do not expose node:sqlite are not affected, but should still confirm their effective NodeVM builtin configuration before deprioritizing the update.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in npm
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
vm2 is a Node.js sandbox library used to run untrusted code; its NodeVM class executes host-language JavaScript with a configurable builtin allowlist that determines which core modules sandboxed code may require. In the affected range, permitting node:sqlite (explicitly or via builtin: ['*']) exposes the host's node:sqlite module, whose DatabaseSync objects are wrapped with vm.readonly() - a protection that blocks property assignment but does not neutralize callable functions that retain host authority, such as those that trigger native library loading. The root cause class is CWE-693 (Protection Mechanism Failure): the readonly wrapper and the builtin-name resolver both fail to enforce the intended boundary. The resolver treats any specifier beginning with 'node:' as a core-module request, while the runtime strips only a single 'node:' prefix, so a sandbox request for 'node:node:sqlite' resolves to the configured node:sqlite entry. Once DatabaseSync is reachable with extension loading enabled, loadExtension() hands the file to SQLite, which performs a native dlopen/LoadLibrary in the Node.js host process and invokes the library's entry point - arbitrary native code executing outside the V8 sandbox with the host process's privileges. Note that node:sqlite is a relatively recent Node.js core module and its exposure to untrusted code is the enabling condition here, not a default behavior of vm2.
Know when Vm2 gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H
PR:L because running in the sandbox is a granted privilege; AC:H for the multi-step readonly/double-prefix bypass plus required on-disk native lib; S:C and C/I/A:H for full host escape.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
2DescriptionCVE.org
vm2 versions 3.11.3 through 3.11.6 expose Node.js's host node:sqlite module to code running in NodeVM when that builtin is permitted, either explicitly or through builtin: ['*']. The module is wrapped with vm.readonly(), which prevents property assignment but leaves host-authority callables reachable; in addition, the resolver treats any request starting with 'node:' as a core-module request and the runtime strips only one 'node:' prefix, so a sandbox request for 'node:node:sqlite' resolves to the configured node:sqlite entry. Sandboxed code can therefore create an in-memory DatabaseSync with extension loading enabled and call DatabaseSync.loadExtension() on a native library bundled in the untrusted plugin package (path derived from __dirname). SQLite loads the library into the Node.js host process and invokes its native entry point, giving the sandboxed plugin arbitrary native code execution outside the sandbox with the host process's privileges. The issue is fixed in vm2 3.11.7.
Blast Radius
ecosystem impact- 16 npm packages depend on vm2 (5 direct, 11 indirect)
Ecosystem-wide dependent count for version 3.11.3.
Articles & Coverage 1
Technical POC Analysis
The evidence is GHSA-6w8r-xxw2-g3hx; it states "CVE ID No known CVE", so the user-supplied CVE-2026-92938 identifier is not confirmed by the advisory.
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Latest POC
1 PoC candidate from github (unverified)
Sign in to open the public PoC links collected for this CVE.
Executive ViewAI
A critical sandbox-escape flaw in the vm2 library (versions 3.11.3 through 3.11.6) lets untrusted plugin code escape the Node.js sandbox and execute native code with host-process privileges, effectively turning a contained plugin into full server compromise. The exposure is configuration-gated: it only applies where the node:sqlite builtin is deliberately exposed to sandboxes or where the wildcard 'builtin: ["*"]' setting is used, neither of which is a default deployment. Leadership should care because teams running third-party or customer-supplied plugins on affected configurations are hosting code that can reach native system libraries, and the flaw currently has no public exploit identified at time of analysis and no confirmed active exploitation (CISA KEV) - meaning this is a priority remediation window, not an active incident.
Apply vendor patch (vm2 3.11.7 per vendor advisory); if immediate upgrade is not possible, remove node:sqlite from all sandbox builtin allowlists and eliminate the wildcard 'builtin: ["*"]' configuration, disable SQLite extension loading, and run untrusted plugin code in a separate least-privilege process or container without access to host native libraries or sensitive filesystems.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
vm2 is an advanced vm/sandbox for Node.js. Rated critical severity (CVSS 10.0), this vulnerability is remotely exploitab
vm2 is a sandbox that can run untrusted code with Node's built-in modules. Rated critical severity (CVSS 10.0), this vul
vm2 is a sandbox that can run untrusted code with whitelisted Node's built-in modules. Rated critical severity (CVSS 10.
There exists a vulnerability in source code transformer (exception sanitization logic) of vm2 for versions up to 3.9.15,
vm2 is a sandbox that can run untrusted code with whitelisted Node's built-in modules. Rated critical severity (CVSS 10.
This affects the package vm2 before 3.9.4 via a Prototype Pollution attack vector, which can lead to execution of arbitr
Full sandbox escape with arbitrary code execution allows remote attackers to break out of vm2's Node.js sandbox environm
Sandbox escape in vm2 for Node.js allows remote unauthenticated attackers to execute arbitrary commands on the host syst
Sandbox escape in vm2 (patriksimek/vm2) versions prior to 3.11.3 enables remote code execution on the host Node.js proce
Sandbox escape in vm2 Node.js sandbox before 3.10.2 via Promise.prototype.then/catch callback sanitization bypass. PoC a
vm2 is a sandbox that can run untrusted code with whitelisted Node's built-in modules. Rated critical severity (CVSS 9.8
The package vm2 before 3.9.10 are vulnerable to Arbitrary Code Execution due to the usage of prototype lookup for the We
EUVD-2026-81588
GHSA-6w8r-xxw2-g3hx
NVD
CVE.org
EPSS
Exploit-DB