CVE-2026-22686

Source
https://cve.org/CVERecord?id=CVE-2026-22686
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-22686.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-22686
Aliases
Published
2026-01-13T23:11:49.098Z
Modified
2026-01-16T06:50:47.461103Z
Severity
  • 10.0 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H CVSS Calculator
Summary
Sandbox Escape via Host Error Prototype Chain in enclave-vm
Details

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.

Database specific
{
    "cna_assigner": "GitHub_M",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/22xxx/CVE-2026-22686.json",
    "cwe_ids": [
        "CWE-693",
        "CWE-94"
    ]
}
References

Affected packages

Git / github.com/agentfront/enclave

Affected ranges

Type
GIT
Repo
https://github.com/agentfront/enclave
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed

Affected versions

ast-guard@1.*
ast-guard@1.1.0
ast-guard@1.1.1
ast-guard@1.1.2
ast-guard@2.*
ast-guard@2.0.0
ast-guard@2.1.0
ast-guard@2.2.0
ast-guard@2.3.0
enclave-vm@1.*
enclave-vm@1.0.2
enclave-vm@1.0.3
enclave-vm@2.*
enclave-vm@2.0.0
enclave-vm@2.1.0
enclave-vm@2.2.0
enclave-vm@2.3.0
enclave-vm@2.4.0
enclave-vm@2.5.0
enclave-vm@2.6.0
v1.*
v1.0.0
v1.1.0
v2.*
v2.0.0
vectoriadb@2.*
vectoriadb@2.0.0
vectoriadb@2.0.1
vectoriadb@2.0.2

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-22686.json"