Live threats

All CVEs / patriksimek

CVE-2026-92938patriksimek vm2

Native code execution in vm2 via node:sqlite module

Critical 9.4

Priority
56
CVSS 4.0
9.4
EPSS
—
Auth required
Yes
Published
Sep 17, 2026
Updated
Sep 19, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-693
SSVC (CISA)
Exploitation: proof of concept · Automatable: no · Technical impact: total
Vector
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

What happens

vm2 versions 3.11.3 through 3.11.6 expose Node.js's node:sqlite module to code running in NodeVM when the builtin is permitted. An authenticated attacker can create an in-memory SQLite database with extension loading enabled and load a native library from the plugin package, achieving native code execution outside the sandbox with host process privileges.

Show the original NVD text

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.

Source text, unmodified. NVD.

What to do

Patch available · fixed versions: 3.11.7

Update vm2 to version 3.11.7 or later.

Vendor advisory · github.com ↗

  1. Apply the vendor's security update for vm2.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
npm vm2 ≥ 3.11.3 < 3.11.7 3.11.7 npm install vm2@3.11.7

Per OSV / GitHub Advisories (GHSA-6w8r-xxw2-g3hx). Check the version in your lockfile before upgrading.

Affected products

As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.

Official sources

References

Links published by the sources. Open them with care.