{"answers":{"affected":"2 open source packages ship an affected version, including enclave-vm. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-22686 exists.","fix":"Upgrade enclave-vm to 2.7.0 or later.","what":"CVE-2026-22686 is a critical code injection vulnerability in agentfront enclave, published on 13 Jan 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-22686 and fix it if it is affected.\n\nWhat it is: CVE-2026-22686 is a critical code injection vulnerability in agentfront enclave, published on 13 Jan 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-22686 exists.\n\nAffected packages and fixed versions:\n- enclave-vm (npm): affected all versions; fixed in 2.7.0\n- enclave-vm (npm): affected all versions; fixed in 2.7.0\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-22686/ (Markdown: https://insights.sbomify.com/CVE-2026-22686/index.md)","id":"CVE-2026-22686","markdown":"https://insights.sbomify.com/CVE-2026-22686/index.md","name":"CVE-2026-22686","record":{"aliases":["GHSA-7qm7-455j-5p63"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution","security_bypass"],"network_reachable":"yes","non_default_config":false,"product_category":"JavaScript sandbox library","requires_auth":"none","summary":"Attackers can escape the JavaScript sandbox to execute arbitrary code on the host Node.js runtime by exploiting the host Error prototype chain.","user_interaction":"not_required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"enclave","vendor":"agentfront"}],"cvss":{"score":10,"severity":"critical","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"},{"id":"CWE-693","name":"Protection Mechanism Failure"}],"description":"Enclave is a secure JavaScript sandbox designed for safe AI agent code execution. Prior to 2.7.0, there is a critical sandbox escape vulnerability in enclave-vm that allows untrusted, sandboxed JavaScript code to execute arbitrary code in the host Node.js runtime. When a tool invocation fails, enclave-vm exposes a host-side Error object to sandboxed code. This Error object retains its host realm prototype chain, which can be traversed to reach the host Function constructor. An attacker can intentionally trigger a host error, then climb the prototype chain. Using the host Function constructor, arbitrary JavaScript can be compiled and executed in the host context, fully bypassing the sandbox and granting access to sensitive resources such as process.env, filesystem, and network. This breaks enclave-vm’s core security guarantee of isolating untrusted code. This vulnerability is fixed in 2.7.0.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":"2026-01-15","github_poc":3,"max_poc_stars":2,"metasploit":0,"nuclei":0,"refs":[{"date":"2026-03-05T05:35:27Z","kind":"github_poc","ref":"https://github.com/moltengama/CVE-2026-22686-RemoteCodeExecution-RCE-PoC","stars":2,"title":null},{"date":"2026-01-15T19:51:23Z","kind":"github_poc","ref":"https://github.com/amusedx/CVE-2026-22686","stars":1,"title":null},{"date":"2026-09-16T11:37:13Z","kind":"github_poc","ref":"https://github.com/moi404/CVE-2026-22686-RemoteCodeExecution-RCE-PoC","stars":0,"title":"CVE-2026-22686-RemoteCodeExecution-RCE-PoC"}],"tier":"weaponised"},"has_fix":true,"headline":"Sandbox Escape via Host Error Prototype Chain in enclave-vm","id":"CVE-2026-22686","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"code_injection","year":"2026"},"n_packages":2,"n_references":2,"next":{"headline":"WeKnora vulnerable to SQL Injection","id":"CVE-2026-22687"},"packages":[{"ecosystem":"npm","fixed":["2.7.0"],"introduced":["0"],"last_affected":[],"package":"enclave-vm","purl":null,"source":"GHSA-7qm7-455j-5p63"},{"ecosystem":"npm","fixed":["2.7.0"],"introduced":["0"],"last_affected":[],"package":"enclave-vm","purl":"pkg:npm/enclave-vm","source":"GHSA-7qm7-455j-5p63"}],"prev":{"headline":"DevToys Path Traversal (“Zip Slip”) Vulnerability in DevToys Extension Installation","id":"CVE-2026-22685"},"products":["enclave"],"published":"2026-01-13","related":[{"cvss_score":10,"headline":"@enclave-vm/core is vulnerable to Sandbox Escape","id":"CVE-2026-27597","kev_date_added":null,"published":"2026-02-25"},{"cvss_score":6.4,"headline":"Enclave has a sandbox escape via infinite recursion and error objects","id":"CVE-2026-25533","kev_date_added":null,"published":"2026-02-06"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"yes","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-01-14","vendors":["agentfront"]},"summary":"Attackers can escape the JavaScript sandbox to execute arbitrary code on the host Node.js runtime by exploiting the host Error prototype chain.","url":"https://insights.sbomify.com/CVE-2026-22686/"}