Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconAuthenticate to n8n web interface
-
DeliveryCreate or edit workflow
-
ExploitInsert Python Code Node
-
InstallCraft sandbox escape payload
-
C2Execute workflow
-
ExecuteBreak Python sandbox
-
ImpactExecute arbitrary code in task runner container
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Code injection prevention, sandbox exec
MITRE ATT&CK
2 techniques across 2 tactics: Execution, Initial Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires two specific conditions confirmed by the vendor advisory. First, the Python Task Runner feature must be enabled on the n8n instance - the advisory explicitly states 'This issue only affects instances where the Python Task Runner is enabled,' indicating this is a configurable component not active by default in all deployments. Second, the attacker must possess valid authentication credentials with workflow creation or modification permissions - the advisory specifies 'authenticated user with permission to create or modify workflows containing a Python Code Node.' These permissions are typically granted to legitimate n8n users in team or multi-tenant environments, making this a realistic insider threat or compromised-account scenario rather than an unauthenticated remote attack. The CVSS vector PR:N contradicts this requirement and should be PR:L. Exploitation is limited to the scope of the task runner container (S:U in CVSS vector), though container escape or lateral movement may be possible depending on deployment architecture. Network access to the n8n web interface is required (AV:N), but this is standard for web-based workflow platforms. |
| Impact | The CVSS vector contains a critical discrepancy: it shows PR:N (no privileges required) but the vendor description explicitly states 'authenticated user with permission to create or modify workflows' - the actual requirement is PR:L (low privileges required for authenticated workflow editors). Real-world risk depends heavily on deployment configuration. In multi-tenant or team environments with liberal workflow editing permissions, this is a critical privilege escalation path allowing low-privileged authenticated users to execute arbitrary code on the task runner container. The CVSS 7.5 score reflects AV:N (network exploitable) and AC:L (low complexity), which aligns with the authenticated network attack scenario. However, the impact assessment in the CVSS vector (C:N/I:N/A:H) is incorrect - arbitrary code execution grants full confidentiality, integrity, and availability impact on the container. The actual severity is higher than the published CVSS suggests. Exploitation requires two conditions: Python Task Runner must be enabled (non-default in some deployments) and attacker must have workflow edit permissions (common for legitimate users). No public exploit identified at time of analysis, and no CISA KEV listing indicates this is not yet widely exploited, but the GitHub advisory provides sufficient technical detail for exploitation by insiders or compromised accounts. Organizations using n8n with multiple workflow editors face immediate risk. The vulnerability represents a classic sandbox escape, a well-understood attack class with established exploitation techniques. |
| Exploit ScenarioDerived | An authenticated user with workflow editing permissions logs into the n8n web interface and creates a new workflow containing a Python Code Node. Within the Python code editor, the attacker crafts a malicious Python script designed to exploit the sandbox escape vulnerability, leveraging techniques to break out of the task runner's containment. Upon workflow execution, the malicious Python code escapes the sandbox and executes arbitrary commands on the underlying task runner container with the container's privileges. The attacker can now read sensitive environment variables, access internal network resources reachable from the container, exfiltrate workflow data from other users, or establish persistence for lateral movement. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Apr 29, 2026
Sandbox escape in n8n's Python Task Runner enables authenticated workflow editors to execute arbitrary code on the task runner container. This vulnerability (CWE-94: Improper Control of Generation of Code) affects n8n instances with the Python Code Node feature enabled, allowing attackers with workflow creation/modification permissions to break out of the Python sandbox. Vendor-released patches are available in versions 1.123.32, 2.17.4, and 2.18.1. No public exploit identified at time of analysis, though the technical details in the GitHub advisory provide sufficient information for exploitation by authenticated users.
RemediationAI
Upgrade n8n to a patched version immediately: version 1.123.32 for users on the 1.x branch, version 2.17.4 for those on 2.17.x, or version 2.18.1 for those on 2.18.x or later. Vendor-released patches are confirmed in these versions per GitHub advisory GHSA-44v6-jhgm-p3m4. If immediate upgrade is not feasible, implement compensating controls with awareness of their limitations: restrict workflow creation and editing permissions to only fully trusted administrators (reduces attack surface but increases operational friction and may conflict with legitimate use cases), disable the Python Code node by adding n8n-nodes-base.code to the NODES_EXCLUDE environment variable (eliminates Python execution capability but breaks workflows dependent on Python nodes), or disable the Python Task Runner entirely via configuration (same impact as disabling the node). The vendor explicitly states these workarounds 'do not fully remediate the risk' and should only be temporary measures. Organizations should audit existing workflows for suspicious Python code during the remediation window, review user accounts with workflow edit permissions, and monitor task runner container logs for unusual activity. No other mitigations fully address the sandbox escape without patching.
Affected VersionsENISA
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 is a workflow automation platform (npm package n8n) that includes a Python Code Node for executing Python scripts within workflows. The Python Task Runner executes this code in a sandboxed container environment to prevent unauthorized system access. This vulnerability (CWE-94: Improper Control of Generation of Code / Code Injection) represents a sandbox escape flaw in the Python Task Runner implementation. The affected component allows authenticated users to bypass sandbox restrictions through crafted Python code within workflow nodes, achieving arbitrary code execution at the container level. The vulnerability is specific to the Python Task Runner feature - installations not using this feature or those with the Python Code node disabled are not affected. The affected npm package versions span three release branches: legacy 1.x (< 1.123.32), and current 2.x branches (2.17.0-2.17.3 and 2.18.0).
Know when Python 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
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N
Primary rating from Vendor (https://github.com/n8n-io/n8n) · only source for this CVE.
CVSS VectorVendor: https://github.com/n8n-io/n8n
Lifecycle Timeline
3DescriptionCVE.org
Impact
An authenticated user with permission to create or modify workflows containing a Python Code Node could escape the sandbox and achieve arbitrary code execution on the task runner container.
- This issue only affects instances where the Python Task Runner is enabled.
Patches
The issue has been fixed in n8n versions 1.123.32, 2.17.4, and 2.18.1. Users should upgrade to one of these versions or later to remediate the vulnerability.
Workarounds
If upgrading is not immediately possible, administrators should consider the following temporary mitigations:
- Limit workflow creation and editing permissions to fully trusted users only.
- Disable the Python Code node by adding
n8n-nodes-base.codeto theNODES_EXCLUDEenvironment variable, or disable the Python Task Runner entirely.
These workarounds do not fully remediate the risk and should only be used as short-term mitigation measures.
Executive ViewAI
CVE-2026-42234 is a sandbox escape vulnerability in n8n's Python Task Runner that allows authenticated workflow editors to execute arbitrary code on the task runner container. Organizations running n8n with Python Code Node enabled face risk of container compromise and lateral movement by internal users or compromised accounts with workflow modification permissions. Immediate patching is critical to prevent privilege escalation and unauthorized system access.
Vendor-released patch: versions 1.123.32, 2.17.4, or 2.18.1. If immediate patching is not feasible, disable the Python Code Node feature in n8n configuration until patch deployment is completed, and restrict workflow editor role to trusted users only.
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
Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t
BentoML version 1.4.2 and earlier contains an unauthenticated remote code execution vulnerability through insecure deser
pgAdmin 4 contains critical remote code execution vulnerabilities in the Query Tool download and Cloud Deployment endpoi
The renderLocalView function in render/views.py in graphite-web in Graphite 0.9.5 through 0.9.10 uses the pickle Python
BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Rated critica
OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph
pyLoad download manager version prior to 0.5.0b3.dev77 exposes the Flask SECRET_KEY through an unauthenticated endpoint.
Langflow (a visual LLM pipeline builder) contains a critical unauthenticated code execution vulnerability (CVE-2026-3301
In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and conse
Unauthenticated remote code execution affects Kestra OSS (the open-source event-driven orchestration platform) prior to
Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/
pyLoad is the free and open-source Download Manager written in pure Python. Rated medium severity (CVSS 5.3), this vulne
EUVD-2026-27109
GHSA-44v6-jhgm-p3m4
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB