Skip to main content

n8n CVE-2026-42234

| EUVDEUVD-2026-27109 HIGH
Code Injection (CWE-94)
2026-04-29 https://github.com/n8n-io/n8n GHSA-44v6-jhgm-p3m4
7.1
CVSS 4.0 · Vendor: https://github.com/n8n-io/n8n
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Authenticate to n8n web interface
  2. Delivery
    Create or edit workflow
  3. Exploit
    Insert Python Code Node
  4. Install
    Craft sandbox escape payload
  5. C2
    Execute workflow
  6. Execute
    Break Python sandbox
  7. Impact
    Execute 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

n8n < 1.123.32
n8n 2.17.0, < 2.17.4
n8n 2.18.0, < 2.18.1

Affected Packages

npm n8n fix: 1.123.32, 2.17.4, 2.18.1

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

Vendor (https://github.com/n8n-io/n8n) PRIMARY 7.1 HIGH
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

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
Low
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

3
Patch available
May 04, 2026 - 20:01 EUVD
CVSS changed
May 04, 2026 - 19:22 NVD
7.5 (HIGH) 7.1 (HIGH)
CVE Published
Apr 29, 2026 - 21:21 nvd
HIGH 7.5

DescriptionCVE.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.code to the NODES_EXCLUDE environment 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

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
0.1%
Top 79% exploitable
Threat Intel
1
1 source
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA GitHub VulDB

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

36
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +36
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Code Injection CRITICAL

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.

More in Python

View all
CVE-2025-24016 CRITICAL POC
9.9 Feb 10

Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t

CVE-2025-27520 CRITICAL POC
9.8 Apr 04

BentoML version 1.4.2 and earlier contains an unauthenticated remote code execution vulnerability through insecure deser

CVE-2025-2945 CRITICAL POC
9.9 Apr 03

pgAdmin 4 contains critical remote code execution vulnerabilities in the Query Tool download and Cloud Deployment endpoi

CVE-2013-5093 MEDIUM POC
6.8 Sep 27

The renderLocalView function in render/views.py in graphite-web in Graphite 0.9.5 through 0.9.10 uses the pickle Python

CVE-2025-32375 CRITICAL POC
9.8 Apr 09

BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Rated critica

CVE-2014-0224 HIGH POC
7.4 Jun 05

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

CVE-2024-21644 HIGH POC
7.5 Jan 08

pyLoad download manager version prior to 0.5.0b3.dev77 exposes the Flask SECRET_KEY through an unauthenticated endpoint.

CVE-2026-33017 CRITICAL POC
9.3 Mar 17

Langflow (a visual LLM pipeline builder) contains a critical unauthenticated code execution vulnerability (CVE-2026-3301

CVE-2017-9462 HIGH POC
8.8 Jun 06

In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and conse

CVE-2026-49869 CRITICAL POC
10.0 Jun 26

Unauthenticated remote code execution affects Kestra OSS (the open-source event-driven orchestration platform) prior to

CVE-2026-39987 CRITICAL POC
9.3 Apr 08

Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/

CVE-2024-21645 MEDIUM POC
5.3 Jan 08

pyLoad is the free and open-source Download Manager written in pure Python. Rated medium severity (CVSS 5.3), this vulne

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy