CVE-2026-22686 Details
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.
A critical sandbox escape vulnerability has been identified in Enclave's JavaScript execution environment, specifically in versions prior to 2.7.0. This vulnerability allows untrusted, sandboxed JavaScript to execute arbitrary code in the host Node.js runtime. The issue arises because, when a tool invocation fails, enclave-vm exposes a host-side Error object to the sandboxed code. This Error object retains its host realm prototype chain, which can be traversed to access the host Function constructor. An attacker can intentionally trigger a host error, climb the prototype chain, and use the Function constructor to execute malicious JavaScript in the host context. This bypasses the sandbox's security measures and can lead to unauthorized access to sensitive resources such as environment variables, the filesystem, and network capabilities.
Users can upgrade to Enclave version 2.7.0 or later, where this vulnerability has been fixed.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jan 14, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/agentfront/enclave/commit/ed8bc438b2cd6e6f0b5f2de321e5be6f0169b5a1 | [email protected] | Patch |
| https://github.com/agentfront/enclave/security/advisories/GHSA-7qm7-455j-5p63 | [email protected] | ExploitMitigationVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-693 | Protection Mechanism Failure | [email protected] |
| CWE-94 | Improper Control of Generation of Code ('Code Injection') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| agentfront enclave | < 2.7.0 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Feb 24, 2026 | Initial Analysis | [email protected] |
| Jan 14, 2026 | New CVE Received | [email protected] |