CVE-2026-42234: CWE-94: Improper Control of Generation of Code ('Code Injection') in n8n-io n8n
CVE-2026-42234 is a high-severity vulnerability in the n8n open source workflow automation platform. It affects versions prior to 1.123.32, 2.17.4, and 2.18.1 when the Python Task Runner is enabled. An authenticated user with permission to create or modify workflows containing a Python Code Node could escape the sandbox and execute arbitrary code on the task runner container. This vulnerability has been patched in the specified versions.
AI Analysis
Technical Summary
This vulnerability (CWE-94: Improper Control of Generation of Code) in n8n allows an authenticated user with workflow modification permissions to bypass sandbox restrictions in the Python Code Node, leading to arbitrary code execution on the task runner container. The issue only affects instances where the Python Task Runner feature is enabled. It has been addressed in n8n versions 1.123.32, 2.17.4, and 2.18.1.
Potential Impact
Successful exploitation enables an authenticated user with limited privileges to execute arbitrary code on the underlying task runner container, potentially compromising the host environment. This could lead to unauthorized actions within the container context. The vulnerability requires authentication and workflow modification permissions, limiting exposure to authorized users only.
Mitigation Recommendations
This vulnerability has been patched 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 issue. Since this is not a cloud service, patching the affected software instances is necessary. No alternative mitigations or temporary fixes are indicated in the available data.
CVE-2026-42234: CWE-94: Improper Control of Generation of Code ('Code Injection') in n8n-io n8n
Description
CVE-2026-42234 is a high-severity vulnerability in the n8n open source workflow automation platform. It affects versions prior to 1.123.32, 2.17.4, and 2.18.1 when the Python Task Runner is enabled. An authenticated user with permission to create or modify workflows containing a Python Code Node could escape the sandbox and execute arbitrary code on the task runner container. This vulnerability has been patched in the specified versions.
CVSS v4.0
Score 7.1high
Affected software
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
This vulnerability (CWE-94: Improper Control of Generation of Code) in n8n allows an authenticated user with workflow modification permissions to bypass sandbox restrictions in the Python Code Node, leading to arbitrary code execution on the task runner container. The issue only affects instances where the Python Task Runner feature is enabled. It has been addressed in n8n versions 1.123.32, 2.17.4, and 2.18.1.
Potential Impact
Successful exploitation enables an authenticated user with limited privileges to execute arbitrary code on the underlying task runner container, potentially compromising the host environment. This could lead to unauthorized actions within the container context. The vulnerability requires authentication and workflow modification permissions, limiting exposure to authorized users only.
Mitigation Recommendations
This vulnerability has been patched 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 issue. Since this is not a cloud service, patching the affected software instances is necessary. No alternative mitigations or temporary fixes are indicated in the available data.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-04-25T05:37:12.117Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 69f8eab1cbff5d8610415b8d
Added to database: 5/4/2026, 6:51:29 PM
Last enriched: 5/12/2026, 6:29:09 AM
Last updated: 6/19/2026, 1:24:35 AM
Views: 75
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.