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
    • 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-0863

CVE-2026-0863: n8n Python Sandbox RCE Vulnerability

CVE-2026-0863 is a remote code execution flaw in n8n's python-task-executor that allows authenticated attackers to bypass sandbox restrictions and execute arbitrary Python code, potentially leading to full instance takeover.

Published: January 23, 2026

CVE-2026-0863 Overview

CVE-2026-0863 is a sandbox escape vulnerability in n8n's python-task-executor component that allows authenticated attackers to bypass sandbox restrictions and execute arbitrary unrestricted Python code on the underlying operating system. By leveraging string formatting and exception handling techniques, an attacker with basic permissions can exploit the Code block functionality to achieve remote code execution.

The vulnerability can be exploited by any authenticated user with basic permissions and can lead to a full n8n instance takeover when the instance operates under "Internal" execution mode. When operating under "External" execution mode (such as n8n's official Docker image), arbitrary code execution is limited to the Sidecar container rather than the main node, significantly reducing the impact.

Critical Impact

Authenticated attackers can achieve full n8n instance takeover by escaping Python sandbox restrictions, potentially compromising automation workflows, credentials, and connected systems.

Affected Products

  • n8n workflow automation platform (python-task-executor component)
  • n8n instances operating under "Internal" execution mode (highest impact)
  • n8n instances operating under "External" execution mode (limited impact to Sidecar container)

Discovery Timeline

  • 2026-01-18 - CVE CVE-2026-0863 published to NVD
  • 2026-01-20 - Last updated in NVD database

Technical Details for CVE-2026-0863

Vulnerability Analysis

This vulnerability is classified under CWE-95 (Improper Neutralization of Directives in Dynamically Evaluated Code), commonly known as Code Injection. The n8n workflow automation platform includes a Python task executor that provides sandboxed Python code execution capabilities for workflow automation. However, the sandbox implementation contains a critical flaw that allows attackers to break out of the restricted environment.

The attack requires network access and authentication with basic user permissions. Once authenticated, an attacker can craft malicious Python code within the Code block that exploits string formatting mechanisms and exception handling to escape the sandbox boundaries. The scope change indicates that a successful exploit affects resources beyond the vulnerable component itself, potentially compromising the entire n8n instance and any connected systems or credentials stored within.

Instances running in "Internal" execution mode face the highest risk as code execution occurs directly on the main node. Organizations using "External" execution mode (including n8n's official Docker deployment) benefit from container isolation, though the Sidecar container could still be compromised.

Root Cause

The root cause lies in insufficient input validation and improper neutralization of code directives within the Python sandbox implementation. The sandbox fails to adequately restrict Python's string formatting capabilities and exception handling mechanisms, creating an escape path that allows execution of arbitrary code outside the sandbox boundaries. This represents a classic sandbox escape pattern where legitimate language features are weaponized to circumvent security controls.

Attack Vector

The attack is conducted over the network by an authenticated user with basic permissions. The attacker accesses the Code block functionality within n8n's workflow editor and submits specially crafted Python code that exploits string formatting combined with exception handling to break out of the sandbox environment. Once the sandbox is bypassed, the attacker gains the ability to execute arbitrary Python code with the privileges of the n8n process or Sidecar container, depending on the execution mode configuration.

The exploitation chain involves:

  1. Authentication to the n8n instance with basic user credentials
  2. Creating or modifying a workflow containing a Code block
  3. Injecting malicious Python code that leverages string formatting and exception handling
  4. Executing the workflow to trigger the sandbox escape
  5. Running arbitrary unrestricted Python code on the underlying system

Detection Methods for CVE-2026-0863

Indicators of Compromise

  • Unusual Python code patterns in workflow Code blocks containing string formatting with exception handling constructs
  • Unexpected system processes spawned by the n8n service or Sidecar container
  • Anomalous outbound network connections from n8n nodes or containers
  • Suspicious file system access or modifications initiated by the Python executor

Detection Strategies

  • Monitor workflow Code blocks for suspicious Python patterns involving __format__, exception chaining, or class introspection
  • Implement logging for all Code block executions and review for anomalous behavior
  • Deploy runtime application self-protection (RASP) solutions to detect sandbox escape attempts
  • Use SentinelOne Singularity XDR to detect unauthorized code execution and process spawning from n8n services

Monitoring Recommendations

  • Enable verbose logging for n8n workflow executions and Code block activities
  • Monitor container escape attempts in Docker/Kubernetes environments running n8n
  • Implement alerts for unusual Python module imports or system calls originating from n8n processes
  • Review audit logs for users creating or modifying workflows with Code blocks

How to Mitigate CVE-2026-0863

Immediate Actions Required

  • Apply the security patch from commit b73a4283cb14e0f27ce19692326f362c7bf3da02 immediately
  • Audit existing workflows for suspicious Code blocks containing complex string formatting or exception handling
  • Consider temporarily disabling Python Code blocks for untrusted users until patching is complete
  • Switch to "External" execution mode using the official Docker image to limit potential impact

Patch Information

n8n has released a fix for this vulnerability. The patch is available in commit b73a4283cb14e0f27ce19692326f362c7bf3da02 on the official n8n GitHub repository. Organizations should update to a version containing this fix as soon as possible. Additional technical details about the vulnerability are available in the JFrog Vulnerability Report.

Workarounds

  • Deploy n8n using "External" execution mode with the official Docker image to contain potential compromise to the Sidecar container
  • Restrict Code block functionality to trusted users only through n8n's permission system
  • Implement network segmentation to limit the blast radius of a potential sandbox escape
  • Monitor and restrict outbound network access from n8n containers or processes
bash
# Verify n8n execution mode configuration
# Ensure EXECUTIONS_MODE is set to 'queue' for external execution
export EXECUTIONS_MODE=queue

# Verify container isolation for external runners
docker inspect n8n-worker --format='{{.HostConfig.SecurityOpt}}'

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 Score8.5

  • EPSS Probability0.07%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-95
  • Technical References
  • GitHub Commit Update

  • JFrog Vulnerability Report
  • Related CVEs
  • CVE-2026-33696: n8n Workflow Automation RCE Vulnerability

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

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

  • CVE-2026-27498: n8n Workflow Automation RCE Vulnerability
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