New Critical n8n Vulnerability Allow Attackers to Execute Arbitrary Commands
A critical vulnerability has been identified in n8n , an open-source workflow automation platform, allowing authenticated attackers to execute arbitrary commands on host systems.
A critical vulnerability has been identified in n8n , an open-source workflow automation platform, allowing authenticated attackers to execute arbitrary commands on host systems.
The vulnerability, designated CVE-2025-68668, has a CVSS score of 9.9, indicating high severity. It is due to a sandbox-bypass issue in n8n's Python Code Node, which employs Pyodide for code execution. This flaw permits users with workflow-creation or modification permissions to bypass security measures.
Attribute Details
CVE ID CVE-2025-68668
Package n8n (npm)
Severity Critical (9.9/10 CVSS)
The vulnerability, designated CVE-2025-68668, has a CVSS score of 9.9, indicating high severity.
Affected Versions ≥ 1.0.0 and < 2.0.0
Vulnerability Type Sandbox Bypass / Protection Mechanism Failure (CWE-693)
Attack Vector Network
Impact Arbitrary command execution on the host system
This vulnerability impacts all n8n versions from 1.0.0 through 1.111.0, making a wide range of deployments susceptible to potential compromise.
The attack is of low complexity, requiring only network access and low-level authentication privileges. Exploitation can lead to complete system compromise, as attackers can execute commands with the same privileges as the n8n process. The vulnerability's "Changed" scope classification suggests that its impact may extend beyond the vulnerable component.
n8n has rectified this vulnerability in version 2.0.0, implementing a task-runner-based native Python execution model for enhanced isolation. Organizations using affected versions should upgrade to version 2.0.0 or later immediately. For those unable to upgrade, temporary workarounds can be applied, including:
Disable the Code Node by setting the NODES_EXCLUDE environment variable to exclude n8n-nodes-base.code. Disable Python support by setting the environment variable N8N_PYTHON_ENABLED=false (available from version 1.104.0). Enable the task runner-based Python sandbox through the N8N_RUNNERS_ENABLED and N8N_NATIVE_PYTHON_RUNNER environment variables.
Based on reporting by Cyber Security News.
