---
id: CVE-2026-92946
title: >-
  vm2 before 3.11.7 contains a remote code execution vulnerability when
  require.external is enabled without an explicit require.root that excludes
  node_modules
summary: >-
  vm2 before 3.11.7 contains a remote code execution vulnerability when
  require.external is enabled without an explicit require.root that excludes
  node_modules. Sandboxed code can require vm2's own package, instantiate an
  unrestricted Node…
severity: critical
cvss: 10
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H'
cwe:
  - CWE-913
vendor: patriksimek
product: vm2
affected:
  - vm2 < 3.11.7
published: '2026-09-17'
updated: '2026-09-17'
sourceUpdated: '2026-09-17T20:18:59.483'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-92946'
references:
  - url: 'https://github.com/patriksimek/vm2/security/advisories/GHSA-j3hm-6rg5-mchv'
    label: disclosure@vulncheck.com
  - url: >-
      https://www.vulncheck.com/advisories/vm2-before-3.11.7-remote-code-execution-via-require-external
    label: disclosure@vulncheck.com
tags:
  - nvd
  - cve.org
ssvc:
  exploitation: none
  automatable: 'yes'
  technicalImpact: total
  timestamp: '2026-09-17T19:18:11.290554Z'
ingestedAt: '2026-09-17T14:19:30.986Z'
epss: 0.00587
epssPercentile: 0.46805
---

## Overview

vm2 before 3.11.7 contains a remote code execution vulnerability when require.external is enabled without an explicit require.root that excludes node_modules. Sandboxed code can require vm2's own package, instantiate an unrestricted NodeVM instance, and execute arbitrary host OS commands via child_process.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
