CVE-2026-0863CWE-95

Sandbox escape in n8n Python task runner allows for arbitrary code execution on the underlying host.

High · published January 18, 2026

CVSS v3.1
8.5
EPSS
9%
Percentile
95.4
In the wild
Unconfirmed
What it is

⚡ A crafty user with basic permissions can bypass n8n's Python sandbox and execute arbitrary code — quite the risky recipe for disaster! 🔥 Imagine a restaurant that lets customers play chef. If they're not careful about what ingredients they allow, someone could whip up a dish that’s not just odd but downright toxic! Here, the Python-task-executor allows too much freedom, and a misstep could lead to chaos in the kitchen of your n8n instance. If an attacker exploits this vulnerability, they could take full control of your n8n instance while it's running in 'Internal' execution mode. This means they could access sensitive data, manipulate workflows, or even shut down the entire service — a nightmare scenario for any operation!

Put simply

Imagine a restaurant that lets customers play chef. If they're not careful about what ingredients they allow, someone could whip up a dish that’s not just odd but downright toxic! Here, the Python-task-executor allows too much freedom, and a misstep could lead to chaos in the kitchen of your n8n instance. This vulnerability occurs due to insufficient sandboxing when using string formatting and exception handling in n8n's Python-task-executor, allowing authenticated users to execute arbitrary unrestricted Python code on the underlying operating system.

What to do

If an attacker exploits this vulnerability, they could take full control of your n8n instance while it's running in 'Internal' execution mode. This means they could access sensitive data, manipulate workflows, or even shut down the entire service — a nightmare scenario for any operation! To mitigate this risk, ensure that your n8n instance is running in 'External' execution mode when possible. Additionally, update to the latest version that addresses this vulnerability and review user permissions to limit access to the Code block. You've got this! With the right steps, you can secure your n8n instance and keep those pesky attackers at bay! 🛡️

The record
Technical detail
CVSS v3.1
8.5 · HIGH
Vector
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.09288 · 95.4th percentile
Weakness
CWE-95 · Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection')
Published
2026-01-18T15:37Z
EPSS history
Timeline
  • 18 JAN 15:37Z
    Sandbox escape in n8n Python task runner allows for arbitrary code execution on the underlying host.
    cvelistv5