# CVE-2026-92962: vm2 before 3.11.4 Defense Invariant Violation via setup-sandbox.js

- Severity: Low 2.1 (CVSS:4.0, scored by VulnCheck) `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`
- 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.17%, higher than 6% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-05-29T17:38:33.000Z
- Modified: 2026-09-18T03:56:05.252Z
- Also known as: GHSA-q3fm-4wcw-g57x
- Weaknesses: CWE-693
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: VulnCheck

## 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.

(As written by CVE List.)

## Affected

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

## Every score

- VulnCheck: CVSS:4.0 2.1 Low `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`
- GitHub: CVSS:4.0 Low `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`

## References

- <https://github.com/patriksimek/vm2/security/advisories/GHSA-q3fm-4wcw-g57x> (exploit, vendor-advisory, web)
- <https://www.vulncheck.com/advisories/vm2-before-3.11.4-defense-invariant-violation-via-setup-sandbox-js> (third-party-advisory)
- <https://github.com/patriksimek/vm2/commit/ad31adc1fc4a2c163f2f8c11ab4af206074528fd> (web)
- <https://github.com/patriksimek/vm2> (package)
- <https://github.com/patriksimek/vm2/releases/tag/v3.11.4> (web)

## Sources

- CVE List: [CVE-2026-92962](https://www.cve.org/CVERecord?id=CVE-2026-92962), CVE Terms of Use, modified 2026-09-17
- GitHub Advisory Database: [GHSA-q3fm-4wcw-g57x](https://github.com/advisories/GHSA-q3fm-4wcw-g57x), CC-BY-4.0, modified 2026-09-18
- NVD: [CVE-2026-92962](https://nvd.nist.gov/vuln/detail/CVE-2026-92962), Public domain, modified 2026-09-17

---

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