CVE-2025-68668CWE-693

CVE-2025-68668

Critical · published December 27, 2025

CVSS v3.1
9.9
EPSS
13%
Percentile
96.4
In the wild
Unconfirmed
What it is

🚨 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!

Put simply

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.

What to do

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. 🛡️

The record
Technical detail
CVSS v3.1
9.9 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:L
CVSS v4.0
Not supplied
EPSS
0.13167 · 96.4th percentile
Weakness
CWE-693 · Protection Mechanism Failure
Published
2025-12-27T03:15Z
Affected products (1)
ProductVersionsFixed in
n8n/n8n≥ 1.0.0, < 2.0.02.0.0
References (2)
EPSS history
Timeline
  • 26 DEC 21:49Z
    n8n Vulnerable to Arbitrary Command Execution in Pyodide based Python Code Node
    cvelistv5