{"id":"CVE-2026-47137","published":"2026-06-12T14:15:34Z","modified":"2026-06-13T03:55:56Z","title":"vm2: GHSA-8hg8-63c5-gwmx patch bypass: nesting:true without explicit require still allows full RCE","vendor":"patriksimek","product":"vm2","tier":"tail","description":{"text":"vm2 is an open source vm/sandbox for Node.js. Prior to version 3.11.4, the fix for GHSA-8hg8-63c5-gwmx (CVE-2023-37903) introduced a check in nodevm.js line 263 that blocks the combination nesting: true + require: false. However, the check uses strict equality (options.require === false), which is trivially bypassed by omitting the require option entirely. When require is not specified, options.require is undefined, not false. The strict equality check fails, so the security guard is skipped. Immediately after (line 280), the destructuring default require: requireOpts = false assigns requireOpts = false, producing the exact configuration the patch was designed to prevent. This issue has been patched in version 3.11.4.","provenance":"source","from":"CVE.org"},"cvss":{"score":10,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00382,"percentile":0.33035,"provenance":"source"},"cwes":[{"id":"CWE-913","name":"Improper Control of Dynamically-Managed Code Resources"}],"references":[{"url":"https://github.com/patriksimek/vm2/security/advisories/GHSA-m4wx-m65x-ghrr","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/patriksimek/vm2/commit/01a7552add345d5a6862623884e6b79a85bf0568","tags":["x_refsource_MISC"]},{"url":"https://github.com/patriksimek/vm2/commit/86ab819f202c3a8dad88cef5705f2e416c5188d7","tags":["x_refsource_MISC"]},{"url":"https://github.com/advisories/GHSA-g644-9gfx-q4q4","tags":["x_refsource_MISC"]},{"url":"https://github.com/patriksimek/vm2/releases/tag/v3.11.4","tags":["x_refsource_MISC"]}],"priority":{"score":13.6,"factors":[{"name":"EPSS percentile","points":6.61},{"name":"CVSS severity","points":7.0}]},"vendorSlug":"patriksimek","affectedVersions":[{"vendor":"patriksimek","product":"vm2","versions":["< 3.11.4"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"total","timestamp":"2026-06-12T00:00:00+00:00","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"vm2","vulnerableRanges":["<3.11.4"],"patched":["3.11.4"],"from":["GHSA-m4wx-m65x-ghrr"],"provenance":"source"}],"summary":{"text":"The vm2 sandbox library for Node.js, before version 3.11.4, contains a flaw in the nodevm.js component where an incomplete fix for an earlier issue lets a nesting-enabled sandbox run with its require guard disabled. An attacker who can supply code to run inside the sandbox, and who controls a configuration that leaves the require option unset while nesting is enabled, can gain full remote code execution on the host, with no authentication or user interaction needed beyond the sandbox configuration reaching the vulnerable code path.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:35:18Z"},"euvd":{"id":"EUVD-2026-36443","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-patriksimek-vm2-cve-2023-37903","parents":[{"from":"CVE-2023-37903","to":"CVE-2026-47137","relation":"related","confidence":"high","kind":"lineage","evidence":[{"kind":"osv-related","provenance":"source","id":"GHSA-g644-9gfx-q4q4","via":"related"}]},{"from":"CVE-2026-44007","to":"CVE-2026-47137","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["lib/nodevm.js"],"commits":["https://github.com/patriksimek/vm2/commit/46cbbdde4e19b743974c942278080231004146ca","https://github.com/patriksimek/vm2/commit/01a7552add345d5a6862623884e6b79a85bf0568","https://github.com/patriksimek/vm2/commit/86ab819f202c3a8dad88cef5705f2e416c5188d7"],"basis":"shared function","functions":["NodeVM"]}]}]}}