{"id":"CVE-2026-92962","state":"PUBLISHED","title":"vm2 before 3.11.4 Defense Invariant Violation via setup-sandbox.js","description":"vm2 is a sandbox for running untrusted JavaScript. In vm2 versions up to and including 3.11.3, the defaultSandboxPrepareStackTrace function in lib/setup-sandbox.js builds its output array using prototype-walking index assignment (lines[lines.length] = value) rather than a prototype-bypassing define-property primitive. Because this bridge-internal array is allocated in the sandbox realm, code inside the sandbox can install an accessor on Array.prototype for the relevant index; the accessor is then invoked whenever the sandbox reads error.stack (or otherwise triggers Error.prepareStackTrace), allowing sandbox code to observe and intercept each stack-trace line written by the bridge. The same pattern is used in the error-handling (catch) branch. The values written are formatted strings only, so the practical impact is limited to an information side channel and a violation of vm2's bridge-container defense invariant rather than a sandbox escape; the vendor rates the issue Low. The issue is fixed in vm2 3.11.4, which installs each entry as an own data property via Reflect.defineProperty.","publishedAt":"2026-09-17T13:46:18.295Z","updatedAt":"2026-09-17T15:40:44.491Z","severity":{"score":2.1,"label":"Low","version":"4.0","vector":"CVSS:4.0/AV:L/AC:H/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:N/SI:L/SA:N","source":"VulnCheck"},"assigner":"VulnCheck","products":["patriksimek vm2"],"affected":[{"vendor":"patriksimek","product":"vm2","packageURL":"pkg:npm/vm2","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"3.11.4","versionType":"semver"},{"version":"3.11.4","status":"unaffected","versionType":"semver"}]}],"references":["https://github.com/patriksimek/vm2/security/advisories/GHSA-q3fm-4wcw-g57x","https://www.vulncheck.com/advisories/vm2-before-3.11.4-defense-invariant-violation-via-setup-sandbox-js"],"weaknesses":["CWE-693"],"ingestedAt":"2026-10-29T20:13:34.582Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/92xxx/CVE-2026-92962.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-92962","state":"PUBLISHED","datePublished":"2026-09-17T13:46:18.295Z","dateUpdated":"2026-09-17T15:40:44.491Z","assignerShortName":"VulnCheck","assignerOrgId":"83251b91-4cc7-4094-a5c7-464a1b83ea10","dateReserved":"2026-09-17T12:43:31.527Z"},"containers":{"cna":{"title":"vm2 before 3.11.4 Defense Invariant Violation via setup-sandbox.js","descriptions":[{"lang":"en","value":"vm2 is a sandbox for running untrusted JavaScript. In vm2 versions up to and including 3.11.3, the defaultSandboxPrepareStackTrace function in lib/setup-sandbox.js builds its output array using prototype-walking index assignment (lines[lines.length] = value) rather than a prototype-bypassing define-property primitive. Because this bridge-internal array is allocated in the sandbox realm, code inside the sandbox can install an accessor on Array.prototype for the relevant index; the accessor is then invoked whenever the sandbox reads error.stack (or otherwise triggers Error.prepareStackTrace), allowing sandbox code to observe and intercept each stack-trace line written by the bridge. The same pattern is used in the error-handling (catch) branch. The values written are formatted strings only, so the practical impact is limited to an information side channel and a violation of vm2's bridge-container defense invariant rather than a sandbox escape; the vendor rates the issue Low. The issue is fixed in vm2 3.11.4, which installs each entry as an own data property via Reflect.defineProperty."}],"affected":[{"vendor":"patriksimek","product":"vm2","packageURL":"pkg:npm/vm2","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"3.11.4","versionType":"semver"},{"version":"3.11.4","status":"unaffected","versionType":"semver"}]}],"references":[{"url":"https://github.com/patriksimek/vm2/security/advisories/GHSA-q3fm-4wcw-g57x","tags":["vendor-advisory"],"name":"GitHub Security Advisory (GHSA-q3fm-4wcw-g57x)"},{"url":"https://www.vulncheck.com/advisories/vm2-before-3.11.4-defense-invariant-violation-via-setup-sandbox-js","name":"VulnCheck Advisory: vm2 before 3.11.4 Defense Invariant Violation via setup-sandbox.js","tags":["third-party-advisory"]}],"metrics":[{"format":"CVSS","cvssV4_0":{"version":"4.0","vectorString":"CVSS:4.0/AV:L/AC:H/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:N/SI:L/SA:N","attackVector":"LOCAL","attackComplexity":"HIGH","attackRequirements":"NONE","privilegesRequired":"NONE","userInteraction":"NONE","vulnConfidentialityImpact":"NONE","vulnIntegrityImpact":"NONE","vulnAvailabilityImpact":"NONE","subConfidentialityImpact":"NONE","subIntegrityImpact":"LOW","subAvailabilityImpact":"NONE","baseScore":2.1,"baseSeverity":"LOW"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-693","lang":"en","description":"Protection Mechanism Failure","type":"CWE"}]}],"providerMetadata":{"shortName":"VulnCheck","orgId":"83251b91-4cc7-4094-a5c7-464a1b83ea10","dateUpdated":"2026-09-17T13:46:18.295Z"},"datePublic":"2026-05-18T00:00:00.000Z","credits":[{"lang":"en","value":"fg0x0","type":"reporter"}],"x_generator":{"engine":"vulncheck-endgame"}},"adp":[{"title":"CISA ADP Vulnrichment","references":[{"url":"https://github.com/patriksimek/vm2/security/advisories/GHSA-q3fm-4wcw-g57x","tags":["exploit"]}],"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-09-17T15:39:05.864817Z","id":"CVE-2026-92962","options":[{"Exploitation":"poc"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-09-17T15:40:44.491Z"}}]}}}