{"id":"CVE-2026-0863","published":"2026-01-18T15:37:07Z","modified":"2026-01-23T17:58:14Z","title":"Sandbox escape in n8n Python task runner allows for arbitrary code execution on the underlying host.","vendor":null,"product":null,"tier":"tail","description":{"text":"Using string formatting and exception handling, an attacker may bypass n8n's python-task-executor sandbox restrictions and run arbitrary unrestricted Python code in the underlying operating system.\n\nThe vulnerability can be exploited via the Code block by an authenticated user with basic permissions and can lead to a full n8n instance takeover on instances operating under \"Internal\" execution mode.\n\nIf the instance is operating under the  \"External\" execution mode (ex. n8n's official Docker image) - arbitrary code execution occurs inside a Sidecar container and not the main node, which significantly reduces the vulnerability impact.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.09288,"percentile":0.95487,"provenance":"source"},"cwes":[{"id":"CWE-95","name":"Improper Neutralization of Directives in Dynamically Evaluated Code"}],"references":[{"url":"https://research.jfrog.com/vulnerabilities/n8n-python-runner-sandbox-escape-jfsa-2026-001651077/","tags":["third-party-advisory"]},{"url":"https://github.com/n8n-io/n8n/commit/b73a4283cb14e0f27ce19692326f362c7bf3da02","tags":["patch"]},{"url":"https://www.smartkeyss.com/post/cve-2026-0863-python-sandbox-escape-in-n8n-via-exception-formatting-and-implicit-code-execution","tags":[]}],"priority":{"score":25.0,"factors":[{"name":"EPSS percentile","points":19.1},{"name":"CVSS severity","points":5.95}]},"affectedVersions":[{"vendor":null,"product":null,"versions":[">= 2.4.0, < 2.4.2","< 1.123.14",">= 2.0.0, < 2.3.5"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2026-01-20T16:42:52.853699Z","from":"CISA ADP","provenance":"source"},"summary":{"text":"A sandbox escape in n8n's Python task runner (python-task-executor) lets an attacker bypass the sandbox restrictions through string formatting and exception handling and run arbitrary unrestricted Python code on the underlying operating system. The attacker needs an authenticated account with basic permissions, can reach the flaw through the Code block, and gains full instance takeover only when n8n runs in \"Internal\" execution mode; under \"External\" mode, code runs in a sidecar container rather than the main node, substantially limiting the impact.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-21T07:24:59Z"},"euvd":{"id":"EUVD-2026-3171","exploited":false,"provenance":"source"}}