banner logoJoin us at RSAC™ 2026 Conference, March 23–March 26 | North Expo, Booth N-5863Join us at RSAC™ 2026, March 23–March 26Learn More
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
      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
    • 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-27577

CVE-2026-27577: n8n Workflow Automation RCE Vulnerability

CVE-2026-27577 is a remote code execution flaw in n8n workflow automation that allows authenticated users to execute system commands via crafted expressions. This post covers technical details, affected versions, and mitigations.

Published: February 27, 2026

CVE-2026-27577 Overview

CVE-2026-27577 is a critical Code Injection vulnerability in n8n, an open source workflow automation platform. This vulnerability allows authenticated users with permission to create or modify workflows to abuse crafted expressions in workflow parameters, triggering unintended system command execution on the host running n8n. This issue follows previous expression evaluation exploits patched in CVE-2025-68613, indicating a continued attack surface in the expression parsing functionality.

Critical Impact

An authenticated attacker can execute arbitrary system commands on the n8n host server, potentially leading to complete system compromise, data exfiltration, lateral movement within the network, and persistent access to the workflow automation infrastructure.

Affected Products

  • n8n versions prior to 2.10.1
  • n8n versions prior to 2.9.3
  • n8n versions prior to 1.123.22

Discovery Timeline

  • 2026-02-25 - CVE-2026-27577 published to NVD
  • 2026-02-25 - Last updated in NVD database

Technical Details for CVE-2026-27577

Vulnerability Analysis

This vulnerability is classified as CWE-94 (Improper Control of Generation of Code / Code Injection). The flaw resides in the expression evaluation mechanism within n8n's workflow engine. When users create or modify workflows, the platform processes dynamic expressions embedded in workflow parameters. The vulnerable code paths fail to properly sanitize user-controlled input before evaluating expressions, allowing injection of malicious payloads that escape the intended expression context.

The attack can be executed over the network by any authenticated user with workflow creation or modification permissions. The vulnerability requires no user interaction beyond the initial authentication, and successful exploitation impacts both the confidentiality and integrity of the host system, with potential for complete server compromise.

Root Cause

The root cause stems from insufficient input validation and sanitization in the expression evaluation pipeline. As evidenced by the security patches, multiple components were vulnerable:

  1. Authentication bypass in ChatTrigger: The original code checked for authentication cookies after processing potentially dangerous operations, allowing the setup webhook to bypass authentication checks improperly.

  2. Missing input sanitization: User-controlled values such as allowedFilesMimeTypes were passed directly to template rendering without sanitization, enabling injection attacks.

The patches show the n8n team addressed these by restructuring authentication checks to occur before any processing and adding explicit sanitizeUserInput() calls for user-controlled string values.

Attack Vector

The attack requires network access to an n8n instance where the attacker has authenticated credentials with workflow editing permissions. The attacker crafts a malicious expression within workflow parameters that, when evaluated by the n8n engine, breaks out of the expression sandbox and executes arbitrary system commands on the underlying host.

The low attack complexity combined with the lack of required user interaction makes this vulnerability particularly dangerous in multi-user n8n deployments where workflow permissions may be granted to users who should not have system-level access.

typescript
// Security patch in GenericFunctions.ts - Authentication bypass fix
// Source: https://github.com/n8n-io/n8n/commit/1479aab2d32fe0ee087f82b9038b1035c98be2f6

// BEFORE: Authentication check could be bypassed
const authCookie = getCookie('n8n-auth');
if (!authCookie && webhookName !== 'setup') {
    // Data is not defined on node so can not authenticate
    throw new ChatTriggerAuthorizationError(500, 'User not authenticated!');
}

// AFTER: Authentication enforced before processing
if (webhookName !== 'setup') {
    function getCookie(name: string) {
        const value = `; ${headers.cookie}`;
        const parts = value.split(`; ${name}=`);

        if (parts.length === 2) {
            return parts.pop()?.split(';').shift();
        }
        return '';
    }

    const authCookie = getCookie('n8n-auth');
    if (!authCookie) {
        throw new ChatTriggerAuthorizationError(401, 'User not authenticated!');
    }
}
typescript
// Security patch in templates.ts - Input sanitization fix
// Source: https://github.com/n8n-io/n8n/commit/9e5212ecbc5d2d4e6f340b636a5e84be6369882e

// BEFORE: Unsanitized user input
const sanitizedAllowedFilesMimeTypes = allowedFilesMimeTypes?.toString() ?? '';

// AFTER: Proper input sanitization applied
const sanitizedAllowedFilesMimeTypes = sanitizeUserInput(allowedFilesMimeTypes?.toString() ?? '');

Detection Methods for CVE-2026-27577

Indicators of Compromise

  • Unexpected system processes spawned by the n8n application process
  • Workflow definitions containing unusual expression syntax or shell command patterns
  • Abnormal outbound network connections from the n8n host to unknown destinations
  • Unexpected file system modifications in directories accessible to the n8n service account

Detection Strategies

  • Monitor workflow creation and modification audit logs for expressions containing shell metacharacters, backticks, or command substitution patterns
  • Implement runtime application security monitoring to detect process spawning from the n8n Node.js process
  • Deploy file integrity monitoring on the n8n installation directories and system binaries
  • Analyze n8n access logs for unusual workflow editing activity from unexpected IP addresses or user accounts

Monitoring Recommendations

  • Enable verbose logging for n8n workflow execution to capture expression evaluation details
  • Configure SIEM alerts for process execution events originating from the n8n application
  • Monitor for new or modified workflow definitions through n8n's API or database
  • Implement network segmentation monitoring to detect lateral movement attempts from the n8n host

How to Mitigate CVE-2026-27577

Immediate Actions Required

  • Upgrade n8n immediately to version 2.10.1, 2.9.3, or 1.123.22 or later
  • Audit all existing workflows for suspicious expressions or unauthorized modifications
  • Review and restrict workflow creation and editing permissions to trusted users only
  • Isolate n8n instances in hardened network segments with restricted egress

Patch Information

The n8n development team has released security patches addressing this vulnerability across multiple release branches. Users should upgrade to the following versions:

  • Version 2.10.1 (latest stable branch)
  • Version 2.9.3 (2.9.x branch)
  • Version 1.123.22 (1.x branch for legacy deployments)

The patches are documented in the GitHub Security Advisory GHSA-v98v-ff95-f3cp and GHSA-vpcf-gvg4-6qwr. Technical details of the fixes can be found in the commit 1479aab and commit 9e5212e.

Workarounds

  • Limit workflow creation and editing permissions to fully trusted users only through n8n's role-based access control
  • Deploy n8n in a hardened container or VM with restricted operating system privileges
  • Implement network access controls to limit outbound connectivity from the n8n host
  • Run n8n with a least-privilege service account that has minimal system access
bash
# Example: Restrict n8n service account permissions
# Create a dedicated user with minimal privileges
useradd -r -s /bin/false n8n-service

# Set restrictive file permissions on n8n directories
chown -R n8n-service:n8n-service /opt/n8n
chmod 750 /opt/n8n

# Run n8n with restricted capabilities (using systemd)
# Add to n8n.service unit file:
# [Service]
# User=n8n-service
# NoNewPrivileges=true
# ProtectSystem=strict
# ProtectHome=true
# PrivateTmp=true

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.09%

  • 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-94
  • Technical References
  • n8n Security Overview

  • GitHub Commit Changes

  • GitHub Commit Changes

  • GitHub Security Advisory

  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-27498: n8n Workflow Automation RCE Vulnerability

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

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

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