Sandbox escape in Enclave JavaScript sandbox for AI agents (CVE-2026-22686)
A critical vulnerability in enclave-vm prior to version 2.7.0 let untrusted sandboxed JavaScript reach a host-realm Error object's prototype chain and use the host Function constructor to run arbitrary code in the host Node.js runtime, exposing process.env, the filesystem and network. The issue is fixed in version 2.7.0.
Disclosed 14 January 2026 · Record updated 13 September 2026
Impact
Sandboxed, untrusted code could fully escape isolation and execute arbitrary JavaScript on the host, gaining access to environment variables, the filesystem and network.
Our coverage
No articles linked to this incident yet.
Sources
- nvd.nist.govhttps://nvd.nist.gov/vuln/detail/CVE-2026-22686
