Critical · published December 27, 2025
🚨 An authenticated user with just a few clicks can execute arbitrary commands on the host system running n8n! 🔥 Think of it like a hotel guest who has the master key; they could access any room, snooping through your valuables without ever being noticed. The Python Code Node in n8n lets users run commands as if they were the system itself, bypassing the expected safety measures! If exploited, this vulnerability could lead to an attacker gaining full control over the n8n environment, potentially accessing sensitive data, modifying workflows, or even taking down the entire automation setup. The devastation could be absolute, impacting your entire operations and data integrity!
Think of it like a hotel guest who has the master key; they could access any room, snooping through your valuables without ever being noticed. The Python Code Node in n8n lets users run commands as if they were the system itself, bypassing the expected safety measures! This sandbox bypass vulnerability exists in the Python Code Node that uses Pyodide, allowing authenticated users with permissions to create or modify workflows to execute arbitrary commands with the same privileges as the n8n process.
If exploited, this vulnerability could lead to an attacker gaining full control over the n8n environment, potentially accessing sensitive data, modifying workflows, or even taking down the entire automation setup. The devastation could be absolute, impacting your entire operations and data integrity! To secure your system, upgrade n8n to version 2.0.0 immediately. If an upgrade isn't feasible yet, disable the Code Node by setting the environment variable NODES_EXCLUDE: '["n8n-nodes-base.code"]' or disable Python support in the Code node with N8N_PYTHON_ENABLED=false. Additionally, configure the task runner-based Python sandbox for protection. You've got this! Follow these steps, and you'll have your n8n setup locked down tight in no time. 🛡️
| Product | Versions | Fixed in |
|---|---|---|
| n8n/n8n | ≥ 1.0.0, < 2.0.0 | 2.0.0 |