The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-42234

CVE-2026-42234: N8n Workflow Automation RCE Vulnerability

CVE-2026-42234 is a remote code execution flaw in N8n workflow automation that allows authenticated users to escape the Python sandbox and execute arbitrary code. This article covers technical details, affected versions, and mitigation.

Published: May 7, 2026

CVE-2026-42234 Overview

CVE-2026-42234 is a sandbox escape vulnerability in n8n, an open source workflow automation platform. Authenticated users with permission to create or modify workflows containing a Python Code Node can break out of the sandbox and execute arbitrary code on the task runner container. The flaw only affects deployments where the Python Task Runner is enabled. The issue is fixed in versions 1.123.32, 2.17.4, and 2.18.1. The weakness is classified under CWE-94 (Improper Control of Generation of Code).

Critical Impact

Authenticated workflow editors can escape the Python sandbox and run arbitrary code on the task runner container, exposing secrets, credentials, and adjacent workloads.

Affected Products

  • n8n versions prior to 1.123.32
  • n8n versions prior to 2.17.4
  • n8n version 2.18.0 and earlier 2.18.x releases prior to 2.18.1

Discovery Timeline

  • 2026-05-04 - CVE-2026-42234 published to NVD
  • 2026-05-06 - Last updated in NVD database

Technical Details for CVE-2026-42234

Vulnerability Analysis

The vulnerability resides in the Python Code Node executed by the n8n Python Task Runner. n8n exposes a Code Node that allows workflow authors to embed Python logic inside automated workflows. The runner is intended to confine Python execution within a sandbox so user-supplied code cannot reach the host process or the container's broader resources.

An authenticated user with workflow create or edit privileges can craft Python code that escapes this sandbox boundary. Once outside the sandbox, the attacker reaches the underlying task runner container with the privileges of the runner process. This grants arbitrary code execution within that container.

The vulnerability is tracked under CWE-94 because untrusted input is interpreted and executed as code outside its intended security boundary. The EPSS probability is 0.074% as of 2026-05-07.

Root Cause

The Python sandbox enforced by the task runner does not fully isolate Python language features that allow access to interpreter internals. Python introspection primitives, module imports, or builtins reachable from sandboxed scope can be abused to obtain references to objects outside the sandbox. From those references, an attacker reconstructs paths to dangerous functions such as process execution or file system operations.

Attack Vector

Exploitation requires authenticated access with permission to create or modify workflows. The attacker adds a Python Code Node containing sandbox-escape primitives and triggers the workflow. The Python Task Runner evaluates the node, and the escape executes inside the runner container. Instances that have not enabled the Python Task Runner are not affected.

The vulnerability is described in prose only because no public proof-of-concept code has been published. Refer to the n8n GitHub Security Advisory GHSA-44v6-jhgm-p3m4 for vendor technical details.

Detection Methods for CVE-2026-42234

Indicators of Compromise

  • Unexpected child processes spawned by the n8n Python Task Runner container, especially shells (/bin/sh, /bin/bash) or interpreters launched outside normal Python execution.
  • Outbound network connections originating from the task runner container to addresses not associated with workflow integrations.
  • New or modified Python Code Nodes containing references to __builtins__, __import__, __subclasses__, or os.system introduced by non-administrator accounts.
  • File system writes inside the runner container outside of n8n's normal working directories.

Detection Strategies

  • Audit n8n workflow change logs for Python Code Node creation or modification events and correlate with the acting user identity.
  • Apply runtime monitoring on the task runner container to flag process executions that deviate from the expected Python interpreter behavior.
  • Compare the running n8n version against the patched releases 1.123.32, 2.17.4, and 2.18.1 and alert on instances below those versions with the Python Task Runner enabled.

Monitoring Recommendations

  • Forward container runtime telemetry, n8n audit logs, and workflow execution logs to a centralized analytics pipeline for correlation.
  • Alert on Python workflow executions that perform subprocess, os, or socket operations inconsistent with documented automation patterns.
  • Track authentication events for accounts with workflow editor roles and review privilege grants regularly.

How to Mitigate CVE-2026-42234

Immediate Actions Required

  • Upgrade n8n to 1.123.32, 2.17.4, or 2.18.1 depending on your release branch.
  • If patching is delayed, disable the Python Task Runner on instances where it is not required.
  • Review which user accounts hold workflow create or edit permissions and remove unnecessary access.
  • Rotate credentials, API tokens, and secrets accessible from the task runner container if compromise is suspected.

Patch Information

The maintainers released fixes in n8n 1.123.32, 2.17.4, and 2.18.1. Patch details and the coordinated advisory are published in the n8n GitHub Security Advisory GHSA-44v6-jhgm-p3m4.

Workarounds

  • Disable the Python Task Runner until upgrade is complete on environments that do not require Python workflows.
  • Restrict workflow editor permissions to a small group of trusted administrators using role-based access control.
  • Isolate the task runner container with strict egress network policies and a least-privilege service account.
  • Enable detailed audit logging on workflow modifications and review changes to Python Code Nodes.
bash
# Verify running n8n version and disable the Python Task Runner if unused
docker exec <n8n-container> n8n --version

# Disable Python Task Runner via environment variable before patching
export N8N_RUNNERS_ENABLED=true
export N8N_PYTHON_RUNNER_ENABLED=false

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechN8n

  • SeverityHIGH

  • CVSS Score7.1

  • EPSS Probability0.07%

  • Known ExploitedNo
  • CVSS Vector
  • 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-94
  • Vendor Resources
  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-42232: N8n Workflow Automation RCE Vulnerability

  • CVE-2026-42231: N8n Workflow Automation RCE Vulnerability

  • CVE-2026-33696: n8n Workflow Automation RCE Vulnerability

  • CVE-2026-33660: n8n Workflow Automation RCE Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English