CVE-2026-0863
EUVD-2026-317118.01.2026, 16:15
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.
Affected Products (NVD)
| Vendor | Product | Version |
|---|---|---|
| n8n | n8n | 𝑥 ≤ 1.123.14 |
| n8n | n8n | 2.0.0 ≤ 𝑥 ≤ 2.3.5 |
| n8n | n8n | 2.4.0 ≤ 𝑥 ≤ 2.4.2 |
𝑥
= Vulnerable software versions
Common Weakness Enumeration
- CWE-95 - Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection')The software receives input from an upstream component, but it does not neutralize or incorrectly neutralizes code syntax before using the input in a dynamic evaluation call (e.g. "eval").
- CWE-94 - Improper Control of Generation of Code ('Code Injection')The software constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment.
Vulnerability Media Exposure
References