# CVE-2026-22709: vm2 has a Sandbox Escape

- Severity: Critical 9.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A: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): 1.27%, higher than 70% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-01-26T18:57:14.000Z
- Modified: 2026-06-17T10:20:16.550Z
- Also known as: GHSA-99p7-6v5w-7xg8
- Weaknesses: CWE-94, CWE-693, CWE-913
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: GitHub_M

## Description

vm2 is an open source vm/sandbox for Node.js. In vm2 prior to version 3.10.2, `Promise.prototype.then` `Promise.prototype.catch` callback sanitization can be bypassed. This allows attackers to escape the sandbox and run arbitrary code. In lib/setup-sandbox.js, the callback function of `localPromise.prototype.then` is sanitized, but `globalPromise.prototype.then` is not sanitized. The return value of async functions is `globalPromise` object. Version 3.10.2 fixes the issue.

(As written by CVE List.)

## Affected

- patriksimek vm2: < 3.10.2
- vm2 (npm): before 3.10.2
- vm2_project vm2: before 3.10.2

## Every score

- GitHub_M: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 10.0 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H`

## References

- <https://github.com/patriksimek/vm2/security/advisories/GHSA-99p7-6v5w-7xg8> (exploit, vendor-advisory, web)
- <https://github.com/patriksimek/vm2/commit/4b009c2d4b1131c01810c1205e641d614c322a29> (patch, web)
- <https://github.com/patriksimek/vm2/releases/tag/v3.10.2> (product, release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-22709> (advisory)
- <https://github.com/patriksimek/vm2> (package)

## Sources

- CVE List: [CVE-2026-22709](https://www.cve.org/CVERecord?id=CVE-2026-22709), CVE Terms of Use, modified 2026-01-27
- GitHub Advisory Database: [GHSA-99p7-6v5w-7xg8](https://github.com/advisories/GHSA-99p7-6v5w-7xg8), CC-BY-4.0, modified 2026-02-03
- NVD: [CVE-2026-22709](https://nvd.nist.gov/vuln/detail/CVE-2026-22709), Public domain, modified 2026-06-17

---

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