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. The 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. If 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.
History

Sun, 18 Jan 2026 15:45:00 +0000

Type Values Removed Values Added
Description 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. The 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. If 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.
Title Sandbox escape in n8n Python task runner allows for arbitrary code execution on the underlying host.
Weaknesses CWE-95
References
Metrics cvssV3_1

{'score': 8.5, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H'}


cve-icon MITRE

Status: PUBLISHED

Assigner: JFROG

Published:

Updated: 2026-01-18T15:37:07.529Z

Reserved: 2026-01-12T15:16:43.100Z

Link: CVE-2026-0863

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-01-18T16:15:50.450

Modified: 2026-01-18T16:15:50.450

Link: CVE-2026-0863

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

No data.