New n8n Vulnerability Allows Attackers to Execute Arbitrary Commands
A critical vulnerability has been identified in n8n, an open-source automation and workflow platform, that could enable authenticated users to execute arbitrary commands on affected systems.
A critical vulnerability has been identified in n8n, an open-source automation and workflow platform, that could enable authenticated users to execute arbitrary commands on affected systems.
The vulnerability, designated as CVE-2025-68668 , impacts all n8n versions from 1.0.0 to 1.999.999 and has a CVSS score of 9.1, indicating a critical risk level.
CVE ID: CVE-2025-68668 Vulnerability Type: Sandbox Bypass / Arbitrary Command Execution Affected Component: Python Code Node (Pyodide) Severity: Critical CVSS v3.1 Score: 9.1/10
The issue resides in n8n’s Python Code Node, which utilizes Pyodide for sandbox execution. Researchers reported that this sandbox protection can be bypassed by authenticated users with permissions to create or modify workflows. Exploiting this flaw allows attackers to execute arbitrary system commands with the same privileges as the n8n process on the host machine.
Researchers reported that this sandbox protection can be bypassed by authenticated users with permissions to create or modify workflows.
The vulnerability requires minimal privileges and low attack complexity, making it accessible for malicious insiders or users with basic workflow access. It affects the confidentiality, integrity, and availability of systems, potentially resulting in data theft, system compromise, or service disruption.
The vulnerability impacts n8n versions 1.0.0 through 1.999.999. n8n has released version 2.0.0, which offers a complete fix by replacing the vulnerable Pyodide-based implementation with a more secure task-runner-based native Python environment. Users on versions 1.104.0 or later can apply temporary workarounds without upgrading.
Disable the Code Node entirely by setting the environment variable NODES_EXCLUDE to exclude n8n-nodes-base.code. Turn off Python support by setting N8N_PYTHON_ENABLED=false , available since version 1.104.0. Enable a task-runner-based Python sandbox via N8N_RUNNERS_ENABLED and N8N_NATIVE_PYTHON_RUNNER environment variables for better isolation.
Organizations using n8n should prioritize upgrading to version 2.0.0 immediately. If immediate upgrades are not feasible, implement one of the workarounds based on operational requirements.
Based on reporting by GBHackers.
