A Leader in the 2025 Gartner® Magic Quadrant™ for Endpoint Protection Platforms. Five years running.A Leader in the Gartner® Magic Quadrant™Read the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI Security Portfolio
      Leading the Way in AI-Powered Security Solutions
    • 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
      Digital Forensics, IRR & Breach Readiness
    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
    • 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-25115

CVE-2026-25115: N8n Workflow Automation RCE Vulnerability

CVE-2026-25115 is a remote code execution flaw in N8n workflow automation that lets authenticated users break out of the Python sandbox. This post covers technical details, affected versions, impact, and mitigation.

Published: February 6, 2026

CVE-2026-25115 Overview

CVE-2026-25115 is a critical sandbox escape vulnerability in n8n, an open source workflow automation platform. Prior to version 2.4.8, a vulnerability in the Python Code node allows authenticated users to break out of the Python sandbox environment and execute code outside the intended security boundary. This flaw enables attackers with valid credentials to bypass security controls and potentially achieve arbitrary code execution on the underlying system.

Critical Impact

Authenticated attackers can escape the Python sandbox to execute arbitrary code outside the security boundary, potentially compromising the entire n8n instance and underlying infrastructure.

Affected Products

  • n8n workflow automation platform versions prior to 2.4.8
  • n8n instances running on Node.js environments
  • Self-hosted and cloud-deployed n8n installations utilizing the Python Code node

Discovery Timeline

  • 2026-02-04 - CVE-2026-25115 published to NVD
  • 2026-02-05 - Last updated in NVD database

Technical Details for CVE-2026-25115

Vulnerability Analysis

This vulnerability falls under CWE-693 (Protection Mechanism Failure), indicating that the sandbox protection mechanism designed to isolate Python code execution can be circumvented. The n8n platform provides a Python Code node that allows users to execute custom Python scripts within workflows. To prevent malicious code from affecting the host system, this execution occurs within a sandboxed environment intended to restrict access to system resources and sensitive operations.

The sandbox escape vulnerability allows authenticated users to break out of these security boundaries. When exploited, an attacker can execute arbitrary Python code that runs with the same privileges as the n8n process itself, rather than being confined to the restricted sandbox environment. This could lead to unauthorized access to the file system, network resources, environment variables containing credentials, and other sensitive data accessible to the n8n service.

Root Cause

The root cause stems from insufficient isolation in the Python Code node's sandbox implementation. The protection mechanism fails to adequately restrict access to Python built-in functions, modules, or attributes that can be leveraged to escape the sandbox context. Common sandbox escape techniques involve accessing special Python attributes like __builtins__, __class__, __mro__, or __subclasses__() to reach unrestricted code execution paths.

Attack Vector

The attack requires network access and valid authentication credentials to the n8n platform. An authenticated attacker can craft a malicious workflow containing specially crafted Python code in a Python Code node. When the workflow executes, the malicious code exploits weaknesses in the sandbox implementation to escape confinement and execute arbitrary commands on the underlying system.

The attack scenario involves:

  1. Attacker authenticates to the n8n platform with valid credentials
  2. Attacker creates or modifies a workflow containing a Python Code node
  3. Malicious Python code is inserted that exploits sandbox weaknesses
  4. Upon workflow execution, the code breaks out of the sandbox
  5. Arbitrary code runs with the privileges of the n8n process

Detection Methods for CVE-2026-25115

Indicators of Compromise

  • Unusual Python Code node executions containing references to __builtins__, __class__, __mro__, or __subclasses__
  • Workflow logs showing unexpected system calls or file system access originating from Python Code nodes
  • New or modified workflows created by unauthorized users or containing obfuscated Python code
  • Process spawning events from the n8n service that indicate command execution outside normal operations

Detection Strategies

  • Monitor n8n workflow logs for Python Code node executions containing suspicious module imports or attribute access patterns
  • Implement file integrity monitoring on the n8n installation directory and workflow storage locations
  • Deploy endpoint detection and response (EDR) solutions to detect anomalous child processes spawned by the n8n service
  • Review authentication logs for unusual access patterns or credential usage preceding workflow modifications

Monitoring Recommendations

  • Enable verbose logging for workflow executions, particularly for Python Code node activities
  • Configure alerting for any Python Code node execution that references restricted attributes or modules
  • Monitor network traffic originating from the n8n host for unexpected outbound connections
  • Implement user behavior analytics to detect unusual workflow creation or modification patterns

How to Mitigate CVE-2026-25115

Immediate Actions Required

  • Upgrade n8n to version 2.4.8 or later immediately to apply the security patch
  • Audit existing workflows for any suspicious Python Code node content
  • Review user access permissions and remove unnecessary accounts that can create or modify workflows
  • Consider temporarily disabling the Python Code node functionality if immediate patching is not possible

Patch Information

The vulnerability has been patched in n8n version 2.4.8. Organizations should update to this version or later to remediate the sandbox escape vulnerability. For detailed information about the security fix, refer to the GitHub Security Advisory GHSA-8398-gmmx-564h.

Workarounds

  • Restrict access to the Python Code node by limiting which users can create or modify workflows containing this node type
  • Implement network segmentation to isolate n8n instances from sensitive internal resources
  • Deploy additional runtime application self-protection (RASP) solutions to detect and block sandbox escape attempts
  • Run n8n in a containerized environment with minimal privileges to limit the impact of a successful escape
bash
# Example: Restricting n8n container privileges
docker run -d \
  --name n8n \
  --read-only \
  --security-opt=no-new-privileges:true \
  --cap-drop=ALL \
  -e N8N_BASIC_AUTH_ACTIVE=true \
  n8nio/n8n:2.4.8

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechN8n

  • SeverityCRITICAL

  • CVSS Score9.4

  • EPSS Probability0.04%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/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
  • AvailabilityHigh
  • CWE References
  • CWE-693
  • Vendor Resources
  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-25056: N8n Workflow Automation RCE Vulnerability

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

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

  • CVE-2026-25049: 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
  • English
  • 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