# CVE-2026-22686: Sandbox Escape via Host Error Prototype Chain in enclave-vm

- Severity: Critical 10.0 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/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): 0.76%, higher than 56% of CVEs (2026-12-02)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-01-13T23:11:49.098Z
- Modified: 2026-06-17T10:20:14.003Z
- Also known as: GHSA-7qm7-455j-5p63
- Weaknesses: CWE-94, CWE-693
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total
- Assigned by: GitHub_M

## Description

Enclave is a secure JavaScript sandbox designed for safe AI agent code execution. Prior to 2.7.0, there is a critical sandbox escape vulnerability in enclave-vm that allows untrusted, sandboxed JavaScript code to execute arbitrary code in the host Node.js runtime. When a tool invocation fails, enclave-vm exposes a host-side Error object to sandboxed code. This Error object retains its host realm prototype chain, which can be traversed to reach the host Function constructor. An attacker can intentionally trigger a host error, then climb the prototype chain. Using the host Function constructor, arbitrary JavaScript can be compiled and executed in the host context, fully bypassing the sandbox and granting access to sensitive resources such as process.env, filesystem, and network. This breaks enclave-vm’s core security guarantee of isolating untrusted code. This vulnerability is fixed in 2.7.0.

(As written by CVE List.)

## Affected

- agentfront enclave: < 2.7.0; before 2.7.0
- enclave-vm (npm): before 2.7.0

## Every score

- GitHub_M: 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`
- GitHub: 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/agentfront/enclave/security/advisories/GHSA-7qm7-455j-5p63> (exploit, mitigation, vendor-advisory, web)
- <https://github.com/agentfront/enclave/commit/ed8bc438b2cd6e6f0b5f2de321e5be6f0169b5a1> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-22686> (advisory)
- <https://github.com/agentfront/enclave> (package)

## Sources

- CVE List: [CVE-2026-22686](https://www.cve.org/CVERecord?id=CVE-2026-22686), CVE Terms of Use, modified 2026-01-14
- GitHub Advisory Database: [GHSA-7qm7-455j-5p63](https://github.com/advisories/GHSA-7qm7-455j-5p63), CC-BY-4.0, modified 2026-02-03
- NVD: [CVE-2026-22686](https://nvd.nist.gov/vuln/detail/CVE-2026-22686), Public domain, modified 2026-06-17

---

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