---
id: GHSA-m7cq-7f2q-f9fh
title: >-
  Duplicate Advisory: vm2 3.11.6 allows a sandboxed plugin to execute native
  code through `node:sqlite`
summary: >-
  Duplicate Advisory: vm2 3.11.6 allows a sandboxed plugin to execute native
  code through `node:sqlite`
severity: critical
cvss: 9.9
cwe:
  - CWE-693
vendor: vm2
product: vm2
ecosystem: npm
affected:
  - 'vm2 >= 3.11.3, <= 3.11.6'
published: '2026-09-17'
updated: '2026-10-01'
sourceUpdated: '2026-10-01T15:28:57Z'
source: GHSA
sourceUrl: 'https://github.com/advisories/GHSA-m7cq-7f2q-f9fh'
references:
  - url: 'https://github.com/patriksimek/vm2/security/advisories/GHSA-6w8r-xxw2-g3hx'
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2026-92938'
  - url: >-
      https://www.vulncheck.com/advisories/vm2-3.11.3-through-3.11.6-remote-code-execution-via-node-sqlite
  - url: 'https://github.com/advisories/GHSA-m7cq-7f2q-f9fh'
tags:
  - ghsa
  - npm
ingestedAt: '2026-10-01T15:48:17.826Z'
---

## Overview

## Duplicate Advisory

This advisory has been withdrawn because it is a duplicate of GHSA-6w8r-xxw2-g3hx. This link is maintained to preserve external references.

## Original Description
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.

## Affected packages

- `vm2 >= 3.11.3, <= 3.11.6`

## Remediation

Refer to the advisory for the patched release.
