Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. vm2
  4. ›
  5. CVE-2026-92950

CVE-2026-92950: vm2 CLI provides no sandbox isolation - host-realm require() is reachable from sandboxed scripts

October 1, 2026

The vm2 command-line tool installed by npm install -g vm2 and documented in the README’s “CLI” section runs the supplied script under NodeVM with require:{external:true} and no root / context / builtin configured. With these defaults the resolver loads every relative or absolute require() target through the host require() function, executing the attacker’s module body in the host Node.js process before the result is ever proxied back into the sandbox. A single attacker-controlled file passed to vm2 ./script.js can call require(__filename) to re-execute itself in host realm and reach fs, child_process, etc. The documented sandbox runner is therefore equivalent to node ./script.js. No additional files, flags, or user interaction are required.

References

  • github.com/advisories/GHSA-jxxv-8r27-vm4p
  • github.com/patriksimek/vm2/commit/903017c8a1eae9aba947ec854468b48155e79f86
  • github.com/patriksimek/vm2/releases/tag/v3.11.7
  • github.com/patriksimek/vm2/security/advisories/GHSA-jxxv-8r27-vm4p
  • nvd.nist.gov/vuln/detail/CVE-2026-92950
  • www.vulncheck.com/advisories/vm2-before-3.11.7-sandbox-escape-via-cli-require

Code Behaviors & Features

Detect and mitigate CVE-2026-92950 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 3.11.7

Fixed versions

  • 3.11.7

Solution

Upgrade to version 3.11.7 or above.

Impact 8.6 HIGH

CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-1188: Initialization of a Resource with an Insecure Default
  • CWE-453: Insecure Default Variable Initialization
  • CWE-829: Inclusion of Functionality from Untrusted Control Sphere

Source file

npm/vm2/CVE-2026-92950.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Thu, 15 Oct 2026 00:17:25 +0000.