n8n
CVE-2025-68668
CRITICAL
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate as workflow-editing user
-
DeliveryCreate workflow with Python Code Node
-
ExploitCraft Pyodide sandbox-escape payload
-
ExecutionExecute code on host as n8n process
-
ImpactRun arbitrary OS commands / full host compromise
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V15 - Secure Coding and Architecture Protection mechanism completeness
|
| Exploitation Conditions | Requires an authenticated n8n account that holds permission to create or modify workflows, and a deployment where the legacy Pyodide-based Python Code Node is active - i.e. the Code Node is not blocked via NODES_EXCLUDE, N8N_PYTHON_ENABLED is not set to false (toggle available from 1.104.0), and n8n is NOT configured to use the task-runner-based native Python sandbox (N8N_RUNNERS_ENABLED + N8N_NATIVE_PYTHON_RUNNER, default only from 2.0.0). Affected versions are 1.0.0 up to but not including 2.0.0 (cpe:2.3:a:n8n:n8n, node.js). The exploitation ceiling is set by the required authenticated workflow-editing privilege and by the fact that any of the three workarounds fully neutralizes the vector; there is no user-interaction requirement beyond the attacker's own actions. |
| Impact | This is a genuine high-priority issue, though the raw CVSS 9.9 overstates how 'open' it is. The CVSS vector (AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H) correctly captures a network-reachable, low-complexity, scope-changing sandbox escape yielding full host command execution - but the PR:L metric is the key moderator: exploitation requires an authenticated user who already holds permission to create or modify workflows, not an anonymous internet attacker. The scope change (S:C) is justified because the attacker breaks out of the Pyodide sandbox to execute code on the host under the n8n process privileges. No EPSS score, no CISA KEV entry, and no explicit POC/exploit flag were provided in the input, so exploitation-probability and active-exploitation signals are MISSING and cannot be asserted. However, one reference is a public technical write-up ('Breaking out of the Python Sandbox in n8n', smartkeyss.com), which means the bypass technique is publicly documented even if a packaged exploit is not confirmed. Signals are therefore consistent rather than conflicting: a critical-impact, well-documented flaw whose real-world blast radius is bounded by the requirement for an authenticated workflow-editing account. In multi-tenant or loosely-permissioned n8n deployments this is effectively a privilege-escalation-to-host primitive and should be prioritized; in tightly-controlled single-operator instances the trust boundary is weaker and risk is correspondingly lower. |
| Exploit ScenarioDerived | An authenticated n8n user with workflow create/edit rights builds a workflow containing a Python Code Node, writing Pyodide code that escapes the sandbox to run OS-level commands on the host with the n8n process's privileges. The technique is publicly described in a vendor-referenced write-up, lowering the skill barrier. Because the CVSS vector is PR:L, this is a trusted-but-limited insider or any compromised low-privilege workflow account, not an unauthenticated external attacker. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Oct 13, 2026
Arbitrary command execution on the n8n host is possible through a sandbox bypass in the Pyodide-based Python Code Node, affecting n8n versions 1.0.0 through the 1.x line prior to 2.0.0. An authenticated user who can create or modify workflows can escape the Python sandbox and run OS commands with the same privileges as the n8n process, which in containerized deployments is frequently root; the CVSS 3.1 vector (AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H, 9.9) reflects the scope change and full confidentiality, integrity, and availability impact once that privilege is obtained. No public exploit code has been identified at time of analysis and the issue is not in CISA KEV, so exploitation requires the attacker to already hold workflow-editing rights; the vector is fully neutralized by any of the documented workarounds, and the vendor has released a fixed version (2.0.0).
RemediationAI
Vendor-released patch: upgrade to n8n 2.0.0, where the task-runner-based native Python implementation is the default and the vulnerable Pyodide sandbox path is no longer used. Where an immediate upgrade is not possible, apply one of the vendor-documented workarounds, each with its own trade-off: set NODES_EXCLUDE to "[\"n8n-nodes-base.code\"]" to block the Code Node entirely (strongest containment, but any existing workflow using the Code Node will break), or set N8N_PYTHON_ENABLED=false (available from n8n 1.104.0) to disable only Python execution within the Code Node (leaves JavaScript Code Node usage intact, but removes a capability some workflows rely on), or configure N8N_RUNNERS_ENABLED together with N8N_NATIVE_PYTHON_RUNNER to route Python execution through the task-runner sandbox introduced as optional in 1.111.0 (requires externally provisioned task runners and additional operational overhead, and is only available on versions that support it). Note that the NODES_EXCLUDE and N8N_PYTHON_ENABLED controls only neutralize this vector if they are actually applied and verified on every instance, including workers; see the vendor advisory at https://github.com/n8n-io/n8n/security/advisories/GHSA-62r4-hw23-cc8v and the n8n hardening docs for blocking nodes and task runners. Because the abuse path requires only workflow-editing rights, tighten who can create or modify workflows as a compensating control until the fix is deployed.
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in npm
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
n8n's Code Node historically offered a Python execution mode powered by Pyodide, a WebAssembly build of CPython that runs inside a JavaScript/V8 sandbox. That design was intended to be a security boundary, but the boundary between the Pyodide/WASM runtime and the host Node.js process can be crossed, allowing Python code supplied by a workflow author to reach the underlying host and spawn arbitrary OS commands. The root cause class is CWE-693 (Protection Mechanism Failure): the sandbox is the protection mechanism and it fails to contain untrusted code. The affected CPE is cpe:2.3:a:n8n:n8n:*:*:*:*:*:node.js:*:* with the vulnerable range >= 1.0.0, < 2.0.0. n8n's remediation direction was architectural rather than a small patch: version 1.111.0 introduced a task-runner-based native Python implementation as an opt-in, which moves code execution out of the main process into a separate, more strongly isolated runner, and version 2.0.0 made that model the default and the previously vulnerable path no longer reachable. Because the Code Node is a first-class feature of the platform, any deployment where workflows can be authored by untrusted or semi-trusted users inherits the full host-level exposure.
Know when N8n gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
Network-accessible n8n UI/API with low complexity; PR:L because an authenticated workflow-editing account is required; S:C and C/I/A:H because the sandbox escape yields host command execution.
Primary rating from NVD.
CVSS VectorNVD
DescriptionNVD
n8n is an open source workflow automation platform. From version 1.0.0 to before 2.0.0, a sandbox bypass vulnerability exists in the Python Code Node that uses Pyodide. An authenticated user with permission to create or modify workflows can exploit this vulnerability to execute arbitrary commands on the host system running n8n, using the same privileges as the n8n process. This issue has been patched in version 2.0.0. Workarounds for this issue involve disabling the Code Node by setting the environment variable NODES_EXCLUDE: "[\"n8n-nodes-base.code\"]", disabling Python support in the Code node by setting the environment variable N8N_PYTHON_ENABLED=false, which was introduced in n8n version 1.104.0, and configuring n8n to use the task runner based Python sandbox via the N8N_RUNNERS_ENABLED and N8N_NATIVE_PYTHON_RUNNER environment variables.
Executive ViewAI
A critical sandbox-escape flaw in the n8n workflow automation platform (versions 1.0.0 through 1.x, fixed in 2.0.0) allows an authenticated user with workflow-editing rights to execute operating-system commands on the n8n host, typically with the same privileges as the n8n service account - which is frequently root in containerized deployments. Because n8n is often granted broad connectivity to internal systems, credentials, and APIs, a single trusted workflow author or a compromised low-privilege account could pivot from automation access to full host and downstream system compromise. Leadership should treat this as a high-priority, insider-and-compromised-account risk affecting any team operating n8n below version 2.0.0.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
Affected Products (CPE)NVD
Remote code execution in n8n's workflow expression evaluation system allows an authenticated user with workflow creation
n8n workflow automation (through 1.121.2) allows authenticated users to execute arbitrary code via the n8n service, with
n8n workflow automation (1.65.0 to 1.121.0) allows unauthenticated file access through form-based workflows. A critical
n8n has a fifth critical RCE vulnerability (CVSS 9.9) in the Expression evaluator, enabling code execution through craft
Authenticated users who can create or modify an n8n workflow can achieve remote code execution on the n8n host by abusin
A prototype pollution vulnerability in the XML and GSuiteAdmin nodes of n8n workflow automation platform allows authenti
An authenticated user with workflow creation or modification privileges in n8n workflow automation platform can exploit
n8n-workflows Main Commit ee25413 allows attackers to execute a directory traversal via the download_workflow function w
Second-order expression injection in n8n workflow automation before 2.10.1/2.9.3/1.123.22. Crafted workflow data trigger
An arbitrary file upload vulnerability in the Chat Trigger component of N8N v1.95.3, v1.100.1, and v1.101.1 allows attac
Authenticated n8n users can hijack administrator accounts when LDAP authentication is enabled by manipulating their LDAP
The n8n package 0.218.0 for Node.js allows Escalation of Privileges. Rated high severity (CVSS 8.8), this vulnerability
NVD
CVE.org
EPSS
GitHub
Exploit-DB