CVE-2026-25533 Enclave has a sandbox escape via infinite recursion and error objects
MediumCVSS 6.4
EPSS 0.26%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
Description
Enclave is a secure JavaScript sandbox designed for safe AI agent code execution. Prior to 2.10.1, the existing layers of security in enclave-vm are insufficient: The AST sanitization can be bypassed with dynamic property accesses, the hardening of the error objects does not cover the peculiar behavior or the vm module and the function constructor access prevention can be side-stepped by leveraging host object references. This vulnerability is fixed in 2.10.1.
Upgrade path
3 packages: 3 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| agentfront enclave | = < 2.10.1; >= 2.7.0, < 2.10.1 | 2.10.1 | Fixed |
| enclave-vm @enclave-vm/core(npm) | < 2.10.1 | 2.10.1 | Fixed |
| npm enclave-vm(npm) | <= 2.7.0 | after 2.7.0 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| agentfront enclave | = < 2.10.1 | No fix listed |
| npm enclave-vm(npm) | <= 2.7.0 | No fix listed |
| enclave-vm @enclave-vm/core(npm) | < 2.10.1 | 2.10.1 |
| agentfront enclave | >= 2.7.0, < 2.10.1 | 2.10.1 |
References
- https://github.com/agentfront/enclave/security/advisories/GHSA-x39w-8vm5-5m3p exploit vendor-advisory
- https://github.com/agentfront/enclave/commit/2fcf5da81e7e2578ede6f94cae4f379165426dca patch
- https://www.staicu.org/publications/usenixSec2023-SandDriller.pdf technical-description
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com
- github.com product