CVE-2026-22686CWE-693CWE-94

Sandbox Escape via Host Error Prototype Chain in enclave-vm

Critical · published January 13, 2026

CVSS v3.1
10.0
EPSS
1%
Percentile
54.6
In the wild
Unconfirmed
What it is

🔥 A sneaky sandbox escape in Enclave allows untrusted JavaScript to run amok in the host Node.js environment! Think of it like a magician whose trick goes horribly wrong, revealing the hidden backstage instead of keeping the illusion. When the wrong spell is cast (or an error occurs), the audience (sandboxed code) can sneak backstage and see everything — including the sensitive props (like process.env and filesystem). An attacker could exploit this vulnerability to execute any code they want within the host environment, bypassing all security measures. This means they could access sensitive data, manipulate files, or even take control of the server! It's absolutely devastating for any application relying on Enclave for security.

Put simply

Think of it like a magician whose trick goes horribly wrong, revealing the hidden backstage instead of keeping the illusion. When the wrong spell is cast (or an error occurs), the audience (sandboxed code) can sneak backstage and see everything — including the sensitive props (like process.env and filesystem). This vulnerability in enclave-vm allows attackers to escape the intended sandbox by triggering an error, which exposes the host Error object. By climbing the prototype chain to access the host Function constructor, malicious code can be compiled and executed in the host context — completely undermining the core security promise of isolation.

What to do

An attacker could exploit this vulnerability to execute any code they want within the host environment, bypassing all security measures. This means they could access sensitive data, manipulate files, or even take control of the server! It's absolutely devastating for any application relying on Enclave for security. Upgrade Enclave to version 2.7.0 immediately to close this critical escape route. Regularly audit your usage of the sandbox to ensure no untrusted code can impact the host environment. Stay updated on security releases to maintain a secure system. You've got this! By taking immediate action, you can secure your application and keep those sneaky attackers at bay! 🛡️

The record
Technical detail
CVSS v3.1
10.0 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00753 · 54.6th percentile
Weaknesses
CWE-693 · Protection Mechanism Failure; CWE-94 · Improper Control of Generation of Code ('Code Injection')
Published
2026-01-13T23:11Z
EPSS history
Timeline
  • 13 JAN 23:11Z
    Sandbox Escape via Host Error Prototype Chain in enclave-vm
    cvelistv5