{"cve":"CVE-2026-22686","nvd":{"published":"2026-01-14T00:15:49.957","modified":"2026-06-17T10:20:14.003","status":"Analyzed","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","score":10.0},"cwes":["CWE-94","CWE-693"],"references":["https://github.com/agentfront/enclave/commit/ed8bc438b2cd6e6f0b5f2de321e5be6f0169b5a1","https://github.com/agentfront/enclave/security/advisories/GHSA-7qm7-455j-5p63"],"products":["agentfront:enclave"],"source":"nvd","synced_at":"2026-10-19T22:19:41.481987139+00:00"},"epss":{"cve":"CVE-2026-22686","score":0.00753,"percentile":0.55082,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-7qm7-455j-5p63","url":"https://osv.dev/vulnerability/GHSA-7qm7-455j-5p63","summary":"enclave-vm Vulnerable to Sandbox Escape via Host Error Prototype Chain","modified":"2026-02-03T02:56:23.079866Z","packages":[{"ecosystem":"npm","name":"enclave-vm","purl":"pkg:npm/enclave-vm","ranges":["<2.7.0"],"fixed":["2.7.0"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}