CVE-2026-42234
NixOS vulnerability analysis and mitigation

Overview

CVE-2026-42234 is a Python Task Runner sandbox escape vulnerability in n8n, an open-source workflow automation platform. An authenticated user with permission to create or modify workflows containing a Python Code Node can escape the sandbox and achieve arbitrary code execution on the task runner container. The vulnerability was first published on April 22, 2026, and affects n8n versions prior to 1.123.32, versions 2.17.0–2.17.3, and version 2.18.0. It carries a CVSS v4.0 base score of 7.1 (High) and a CVSS v3.1 base score of 8.8 (High) (GitHub Advisory, n8n Security Advisory).

Technical details

The root cause is classified as CWE-94 (Improper Control of Generation of Code / Code Injection): the Python Code Node does not sufficiently neutralize user-supplied input, allowing it to break out of the intended sandbox environment. The attack vector is network-based, requires low privileges (an authenticated account with workflow creation/modification rights), and no user interaction beyond the attacker's own actions. Exploitation is conditional on the Python Task Runner being enabled in the n8n instance. The vulnerability was reported by researcher 'dorjoos' (GitHub Advisory, n8n Security Advisory).

Impact

Successful exploitation allows an authenticated attacker to execute arbitrary code on the task runner container, resulting in high confidentiality impact (access to sensitive data processed by the container), low integrity impact (unauthorized modification of system data), and no direct availability impact per the CVSS v4.0 assessment. The scope is limited to the task runner container itself, but depending on the deployment architecture, this could enable lateral movement to other services or data stores accessible from that container (GitHub Advisory, n8n Security Advisory).

Exploitability

There is no public proof-of-concept exploit and no evidence of in-the-wild exploitation at this time (GitHub Advisory). The EPSS score is approximately 0.07–0.095% (26th percentile), indicating a low near-term exploitation probability. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. No threat actor attribution has been reported.

Exploitation steps

  1. Reconnaissance: Identify n8n instances (version < 1.123.32, 2.17.0–2.17.3, or 2.18.0) with the Python Task Runner enabled, using network scanning or service fingerprinting tools.
  2. Authentication: Obtain or use existing low-privileged credentials for an account that has permission to create or modify workflows in the target n8n instance.
  3. Workflow creation: Log in to the n8n web interface and create a new workflow (or modify an existing one) that includes a Python Code Node.
  4. Sandbox escape payload: Insert a crafted Python code payload into the Python Code Node that exploits the insufficient sandbox restrictions — for example, using Python built-ins or module imports (e.g., os, subprocess) to execute system commands outside the intended sandbox boundary.
  5. Trigger execution: Save and execute the workflow to cause the n8n Python Task Runner to evaluate the malicious code, achieving arbitrary command execution on the task runner container.
  6. Post-exploitation: Use the code execution foothold to exfiltrate sensitive data, establish persistence, or pivot to other services accessible from the container (GitHub Advisory, n8n Security Advisory).

Indicators of compromise

  • Logs: n8n workflow execution logs showing Python Code Node executions by non-administrative users; unexpected system-level commands or errors appearing in task runner container logs.
  • Process: Unusual child processes spawned by the n8n Python task runner process (e.g., sh, bash, curl, wget, python3 with unexpected arguments); processes making outbound network connections from the task runner container.
  • Network: Unexpected outbound connections from the task runner container to external IP addresses or internal services not normally accessed during workflow execution.
  • File System: New or modified files in the task runner container's filesystem, particularly scripts, binaries, or configuration files created outside of normal n8n operation; presence of reverse shell scripts or downloaded payloads.

Mitigation and workarounds

Upgrade n8n to one of the patched versions: 1.123.32, 2.17.4, or 2.18.1 (or later). If immediate upgrade is not possible, administrators should apply the following temporary mitigations: (1) restrict workflow creation and editing permissions to fully trusted users only; (2) disable the Python Code node by adding n8n-nodes-base.code to the NODES_EXCLUDE environment variable; or (3) disable the Python Task Runner entirely. Note that these workarounds do not fully remediate the risk and are intended only as short-term measures (GitHub Advisory, n8n Security Advisory).

Community reactions

The vulnerability was detected by Qualys (detection ID 531330) and included in their May 2026 application security detections publication. A brief technical write-up was published by Infinitsec shortly after disclosure. No significant broader media coverage or notable researcher commentary beyond the initial advisory has been identified (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Related NixOS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-75874CRITICAL10
  • NixOS logoNixOS
  • cpe:2.3:a:mozilla:firefox
NoYesAug 18, 2026
CVE-2026-74990CRITICAL9.8
  • NixOS logoNixOS
  • firefox-esr
NoYesAug 18, 2026
CVE-2026-74989CRITICAL9.8
  • NixOS logoNixOS
  • MozillaFirefox-translations-common
NoYesAug 18, 2026
CVE-2026-74988CRITICAL9.8
  • NixOS logoNixOS
  • cpe:2.3:a:mozilla:firefox
NoYesAug 18, 2026
CVE-2026-74987CRITICAL9.8
  • NixOS logoNixOS
  • firefox-esr
NoYesAug 18, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management