# CVE-2026-92935: vm2 NodeVM Remote Code Execution via Array-Shaped Require

- Severity: Critical 9.5 (CVSS:4.0, scored by VulnCheck) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.64%, higher than 51% of CVEs (2026-12-01)
- Published: 2026-09-17T13:46:00.854Z
- Modified: 2026-10-01T15:45:06.195Z
- Also known as: GHSA-8hr7-r645-pc6w
- Weaknesses: CWE-913
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: VulnCheck

## Description

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.

(As written by CVE List.)

## Affected

- patriksimek vm2: from 3.11.4 before 3.11.7 (not affected: 3.11.7)
- vm2 (npm): from 3.11.4 before 3.11.7

## Every score

- VulnCheck: CVSS:4.0 9.5 Critical `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`
- VulnCheck: CVSS:3.1 9.0 Critical `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H`
- GitHub: CVSS:3.1 9.0 Critical `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H`

## References

- <https://github.com/patriksimek/vm2/security/advisories/GHSA-8hr7-r645-pc6w> (vendor-advisory, web)
- <https://github.com/patriksimek/vm2/commit/54b54b74a382577f0bcd0538c5bf99acdcd7f53b> (patch, web)
- <https://www.vulncheck.com/advisories/vm2-nodevm-remote-code-execution-via-array-shaped-require> (third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-92935> (advisory)
- <https://github.com/patriksimek/vm2/commit/05894eca1dc6a2b1a986f312c88255288a983d22> (web)
- <https://github.com/patriksimek/vm2> (package)
- <https://github.com/patriksimek/vm2/releases/tag/v3.11.7> (web)

## Sources

- CVE List: [CVE-2026-92935](https://www.cve.org/CVERecord?id=CVE-2026-92935), CVE Terms of Use, modified 2026-09-17
- GitHub Advisory Database: [GHSA-8hr7-r645-pc6w](https://github.com/advisories/GHSA-8hr7-r645-pc6w), CC-BY-4.0, modified 2026-10-01
- NVD: [CVE-2026-92935](https://nvd.nist.gov/vuln/detail/CVE-2026-92935), Public domain, modified 2026-09-17

---

Page: https://cve.day/CVE-2026-92935 · Whole record: https://cve.day/CVE-2026-92935.json · Rebuilt by cve.day 2026-11-25T22:59:39.241Z
