Skip to main content

vm2 CVE-2026-92938

| EUVDEUVD-2026-81588 CRITICAL
Protection Mechanism Failure (CWE-693)
9.4
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Load malicious plugin into NodeVM
  2. Delivery
    Request node:node:sqlite via double-prefix bypass
  3. Exploit
    Open in-memory DatabaseSync with extensions enabled
  4. Execution
    Call loadExtension() on bundled native library
  5. Persist
    SQLite dlopen executes native entry point
  6. Impact
    Arbitrary 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.

Act Now Prioritize within 24-48h. Why: CRITICAL severity + public POC available.
1 PoC candidate (unverified) Patch available 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

vm2 3.11.3 <3.11.7

Affected Packages

npm vm2 fix: 3.11.7

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

Vendor (VulnCheck) PRIMARY 9.4 CRITICAL
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
vuln.today AI 8.5 HIGH

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.

3.1 AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H
4.0 AV:N/AC:H/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H
Red Hat 9.9 HIGH

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
High
Subsequent system: Integrity
High
Subsequent system: Availability
High

Lifecycle Timeline

2
Patch available
Sep 17, 2026 - 15:17 EUVD
CVE Published
Sep 17, 2026 - 13:46 cve.org
CRITICAL 9.4

DescriptionCVE.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
† from your stack dependencies † transitive graph · vuln.today resolves 4-path depth
  • 16 npm packages depend on vm2 (5 direct, 11 indirect)

Ecosystem-wide dependent count for version 3.11.3.

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

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
0.4%
Top 64% exploitable
Prevalence
Medium
popular but deprecated Node.js sandbox library, niche among production deployments
Threat Intel
1
1 source
Data Quality
5 sources
Confidence: Medium

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.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC Yes
EPSS 0.4%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity + public POC available
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
Poc
System Exposure· derived
Open
Automatable· derived
No
Human Impact
High

Priority Score

67
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +47
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

More in Vm2

View all
CVE-2023-37466 CRITICAL POC
10.0 Jul 14

vm2 is an advanced vm/sandbox for Node.js. Rated critical severity (CVSS 10.0), this vulnerability is remotely exploitab

CVE-2023-32314 CRITICAL POC
10.0 May 15

vm2 is a sandbox that can run untrusted code with Node's built-in modules. Rated critical severity (CVSS 10.0), this vul

CVE-2023-30547 CRITICAL POC
10.0 Apr 17

vm2 is a sandbox that can run untrusted code with whitelisted Node's built-in modules. Rated critical severity (CVSS 10.

CVE-2023-29199 CRITICAL POC
10.0 Apr 14

There exists a vulnerability in source code transformer (exception sanitization logic) of vm2 for versions up to 3.9.15,

CVE-2022-36067 CRITICAL POC
10.0 Sep 06

vm2 is a sandbox that can run untrusted code with whitelisted Node's built-in modules. Rated critical severity (CVSS 10.

CVE-2021-23449 CRITICAL POC
10.0 Oct 18

This affects the package vm2 before 3.9.4 via a Prototype Pollution attack vector, which can lead to execution of arbitr

CVE-2026-26956 CRITICAL POC
9.8 May 04

Full sandbox escape with arbitrary code execution allows remote attackers to break out of vm2's Node.js sandbox environm

CVE-2026-24120 CRITICAL POC
9.8 May 04

Sandbox escape in vm2 for Node.js allows remote unauthenticated attackers to execute arbitrary commands on the host syst

CVE-2026-45411 CRITICAL POC
9.8 May 13

Sandbox escape in vm2 (patriksimek/vm2) versions prior to 3.11.3 enables remote code execution on the host Node.js proce

CVE-2026-22709 CRITICAL POC
9.8 Jan 26

Sandbox escape in vm2 Node.js sandbox before 3.10.2 via Promise.prototype.then/catch callback sanitization bypass. PoC a

CVE-2023-29017 CRITICAL POC
9.8 Apr 06

vm2 is a sandbox that can run untrusted code with whitelisted Node's built-in modules. Rated critical severity (CVSS 9.8

CVE-2022-25893 CRITICAL POC
9.8 Dec 21

The package vm2 before 3.9.10 are vulnerable to Arbitrary Code Execution due to the usage of prototype lookup for the We

Vendor StatusVendor

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy