CVE-2026-92935

Source
https://cve.org/CVERecord?id=CVE-2026-92935
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-92935.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-92935
Aliases
  • GHSA-8hr7-r645-pc6w
Published
2026-09-17T13:46:00Z
Modified
2026-09-18T03:48:42Z
Severity
  • 9.5 (Critical) CVSS_V4 - CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H CVSS Calculator
Summary
vm2 NodeVM Remote Code Execution via Array-Shaped Require
Details

vm2 is a sandbox for running untrusted Node.js code. In versions >= 3.11.4 and <= 3.11.6, the NodeVM constructor computes hasRealRequireConfig with typeof requireOpts === 'object' && requireOpts !== null, so an array-shaped require value (for example require: []) satisfies the guard that is meant to reject nesting without an explicit require configuration. makeResolverFromLegacyOptions() then destructures the array into undefined option fields and returns a resolver containing only NESTING_OVERRIDE.vm2. As a result, an attacker who can supply JavaScript executed by a NodeVM configured with truthy nesting and an array-shaped require (e.g. new NodeVM({nesting: true, require: []})) can require the host vm2 module, create an inner NodeVM with an attacker-chosen builtin allowlist (such as child_process), and execute arbitrary commands with the privileges of the host Node.js process, escaping the sandbox. Outer builtin restrictions do not constrain the attacker-created inner NodeVM. This issue is fixed in vm2 3.11.7.

Database specific
{
    "cna_assigner": "VulnCheck",
    "cwe_ids": [
        "CWE-913"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/92xxx/CVE-2026-92935.json"
}
References

Affected packages

Git / github.com/patriksimek/vm2

Affected ranges

Type
GIT
Repo
https://github.com/patriksimek/vm2
Events
Database specific
Show details
{
    "extracted_events": [
        {
            "introduced": "3.11.4"
        },
        {
            "fixed": "3.11.7"
        }
    ],
    "source": "AFFECTED_FIELD"
}

Affected versions

3.*
3.11.6
v3.*
v3.11.4
v3.11.5

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-92935.json"