patchminder
Proof of concept · GitHub CVE-2026-22686

Code executionin agentfront enclave.

Published 13 Jan 2026 · Updated 14 Jan 2026 · Every fact sourced

JSONCite
Is it exploited?
Not confirmed

Proof of concept public (GitHub).

Attack code is public
Severity
Critical 10.0
CVSSA severity score from 0 to 10. 9 and higher is critical. 3.1 · no login needed
Attack likelihood
Low
EPSSA daily score from FIRST: the chance a hole is attacked in the next 30 days. 0.8% chance in 30 days · 4 Dec 2026
Fix
Available
Upgrade to 2.7.0 or later
In plain words

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.

What to do now
  • Upgrade enclave to 2.7.0 or later.
  • Upgrade enclave-vm (npm) to 2.7.0 or later.
Versions

Affected and fixed versions

Product or package
Affected
Fixed in
Source
enclave
before 2.7.0
2.7.0
CVE record
enclave-vm (npm)
before 2.7.0
2.7.0
GitHub advisory

From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.

Timeline

From first report to first attacks

  1. 8 Jan 2026
    CVE ID reserved by GitHub_M.
  2. 13 Jan 2026
    Published in the CVE List.
  3. 14 Jan 2026
    CVE record last updated.
  4. 15 Jan 2026
    First public proof of concept on GitHub.
Exploit code

Attack code anyone can find

Exploit maturity: Proof of concept (GitHub). CISA assessment (SSVC): exploitation poc.

Metasploit module
None known
Nuclei scan template
None known
Exploit-DB
None known
GitHub proof of concepts
3 repositories
GitHubno warning signs foundmoltengama/CVE-2026-22686-RemoteCodeExecution-RCE-PoC2 stars · created 5 Mar 2026
GitHubno warning signs foundamusedx/CVE-2026-226861 stars · created 15 Jan 2026
GitHubno warning signs foundmoi404/CVE-2026-22686-RemoteCodeExecution-RCE-PoC0 stars · created 16 Sep 2026CVE-2026-22686-RemoteCodeExecution-RCE-PoC

Listed so defenders can judge how urgent this is and test systems they are authorised to test. Patchminder does not host exploit code; links open the source page. Labels for GitHub repositories come from their public details and are never a promise about the code. Run anything only in an isolated lab.

Related

Other enclave vulnerabilities

Same weakness: Protection mechanism failure

All CWE-693 vulnerabilities

References
Cite this page

Patchminder. CVE-2026-22686: Code execution in agentfront enclave. https://patchminder.com/cve/cve-2026-22686/ (accessed 5 December 2026).