Skip to content
Tuesday, October 13, 2026AboutContactRSS
Vulnerabilities

vm2: NodeVM nesting guard accepts array-shaped require and permits host RCE (Critical severity, CVE-2026-92935)

A critical-severity advisory for the npm package vm2 is fixed in version 3.11.7.

Illustration: A tangled knot of grey wires wraps tightly around a central node, with a loose loop slipping through a protective ring.
AI-generated illustration: Threat Times

Key points

  • vm2 (npm) has a critical flaw.
  • Tracked as CVE-2026-92935.
  • Version 3.11.7.

Maintainers of vm2, a package in the npm ecosystem, have published a critical-severity security advisory (CVE-2026-92935): vm2: NodeVM nesting guard accepts array-shaped require and permits host RCE.

At a glance

Advisory
GHSA-8hr7-r645-pc6w
CVE
CVE-2026-92935
Package
vm2 (npm)
Severity
Critical
Patched in
3.11.7

What is the issue?

The GitHub-reviewed advisory explains: Summary The NodeVM constructor computes hasRealRequireConfig using typeof requireOpts === 'object' && requireOpts !== null, so require: [] bypasses the guard intended to reject nesting without an explicit require configuration. makeResolverFromLegacyOptions() then destructures the array to undefined option fields and returns a resolver containing only NESTING_OVERRIDE.vm2. Any attacker whose JavaScript is executed by a downstream NodeVM configured with {nesting: true, require: []} can load the host vm2 module, create an inner NodeVM with an attacker-selected builtin allowlist, and execute commands as the host process. No equivalent plain-object validation exists in makeResolverFromLegacyOptions(). Array is converted into the vm2-only resolver: https://github.com/patriksimek/vm2/blob/54b54b74a382577f0bcd0538c5bf99acdcd7f53b/lib/resolver-compat.jsL205-L226 Nesting loader returns the host V

Affected versions

EcosystemPackageVulnerablePatched
npmvm2>= 3.11.4, <= 3.11.63.11.7

The advisory lists a CVSS score of 9.0.

How to fix it

  • Upgrade the affected package to the first patched version listed above.
  • Rebuild and redeploy applications that bundle the vulnerable dependency.
  • Run your dependency scanner (npm audit, pip-audit, Dependabot) to find transitive uses.
  • Review the advisory references for workaround details if you cannot upgrade yet.

What to do and how to stay safe: CVE-2026-92935

  • Patch scores alone ignore context like network exposure and asset criticality.
  • You must map vulnerabilities to specific business risks to prioritize correctly.
  • Continuous exposure data replaces static scanning for accurate prioritization.

Prioritize vulnerabilities by actual exploitability and business impact, not by theoretical severity scores. Update your asset context and exposure data continuously to maintain accurate risk rankings.

Step-by-step guide: Risk Based Vulnerability Management: Prioritize Fixes by Actual Threat

General security guidance from the Threat Times newsroom. It is not confirmed advice from the organisations named in this story.

Frequently asked questions

What is CVE-2026-92935?

CVE-2026-92935 is a security vulnerability in vm2 (npm).

Which version fixes CVE-2026-92935?

The fix is in version 3.11.7.

Sources

  1. GitHub Advisory GHSA-8hr7-r645-pc6w (CC BY 4.0)
  2. Reference
  3. Reference
  4. Reference
CVE-2026-92935vm2npmOpen Source
Related articles