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-27497

CVE-2026-27497: n8n Workflow Automation SQL Vulnerability

CVE-2026-27497 is a SQL injection flaw in n8n workflow automation that enables authenticated users to execute arbitrary code and write files. This article covers the technical details, affected versions, and mitigation steps.

Published: February 27, 2026

CVE-2026-27497 Overview

CVE-2026-27497 is a critical SQL Injection vulnerability in n8n, an open source workflow automation platform. Prior to versions 2.10.1, 2.9.3, and 1.123.22, an authenticated user with permission to create or modify workflows could leverage the Merge node's SQL query mode to execute arbitrary code and write arbitrary files on the n8n server. This vulnerability combines SQL Injection (CWE-89) with code execution capabilities, significantly amplifying the potential impact.

Critical Impact

Authenticated attackers can achieve remote code execution and arbitrary file write on n8n servers by exploiting the Merge node's SQL query mode, potentially leading to complete system compromise.

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

  • February 25, 2026 - CVE-2026-27497 published to NVD
  • February 25, 2026 - Last updated in NVD database

Technical Details for CVE-2026-27497

Vulnerability Analysis

This vulnerability exists within the Merge node component of n8n's workflow automation engine. The Merge node provides a SQL query mode that allows users to combine and manipulate data from multiple input sources using SQL-like syntax. However, the implementation fails to properly sanitize user-supplied SQL queries before processing, creating an injection vector that can be exploited by authenticated users with workflow creation or modification privileges.

The flaw is particularly dangerous because it allows attackers to escape the SQL query context and execute arbitrary code on the underlying n8n server. Additionally, the vulnerability enables arbitrary file write operations, which could be leveraged for persistence mechanisms, credential theft, or further lateral movement within the network.

The network-based attack vector with low complexity makes this vulnerability accessible to any authenticated user who can access the workflow editor, significantly expanding the potential attack surface in multi-user n8n deployments.

Root Cause

The root cause of CVE-2026-27497 is improper input validation (CWE-89) within the Merge node's SQL query processing functionality. The application fails to adequately sanitize, escape, or parameterize user-supplied input before incorporating it into SQL query execution, allowing malicious actors to inject commands that extend beyond the intended SQL operations into code execution and file system manipulation.

Attack Vector

An attacker must first authenticate to the n8n platform and possess permissions to create or modify workflows. Once these prerequisites are met, the attacker can craft a malicious workflow containing a Merge node configured in SQL query mode. By injecting specially crafted SQL statements, the attacker can break out of the SQL execution context to execute arbitrary commands on the server and write files to arbitrary locations.

The exploitation mechanism relies on the Merge node's integration with underlying server-side processing, where injected payloads can leverage native functions or escape sequences to achieve code execution beyond the SQL layer.

Detection Methods for CVE-2026-27497

Indicators of Compromise

  • Unusual workflow creation or modification activity by users, especially involving Merge nodes with SQL query mode
  • Unexpected file write operations on the n8n server, particularly to sensitive directories
  • Anomalous process spawning from the n8n application
  • Suspicious outbound network connections originating from the n8n server process
  • Modified or newly created files in system directories not associated with normal n8n operations

Detection Strategies

  • Monitor n8n application logs for workflow modifications involving the Merge node with SQL query mode enabled
  • Implement file integrity monitoring (FIM) on the n8n server to detect unauthorized file writes
  • Deploy endpoint detection and response (EDR) solutions to identify suspicious command execution patterns from the n8n process
  • Audit user permissions regularly to ensure only trusted users have workflow creation and editing capabilities

Monitoring Recommendations

  • Enable verbose logging for workflow execution and user activity within n8n
  • Configure alerts for privilege escalation attempts or unauthorized access to sensitive workflows
  • Monitor for unusual SQL query patterns within Merge node configurations
  • Implement network traffic analysis to detect potential data exfiltration following exploitation

How to Mitigate CVE-2026-27497

Immediate Actions Required

  • Upgrade n8n to version 2.10.1, 2.9.3, or 1.123.22 or later immediately
  • Review and audit all existing workflows for suspicious Merge node configurations
  • Restrict workflow creation and editing permissions to fully trusted users only
  • If immediate patching is not possible, disable the Merge node by adding n8n-nodes-base.merge to the NODES_EXCLUDE environment variable

Patch Information

The n8n development team has released security patches addressing this vulnerability. Organizations should upgrade to one of the following fixed versions:

  • n8n@2.10.1
  • n8n@2.9.3
  • n8n@1.123.22

For complete technical details, refer to the GitHub Security Advisory GHSA-wxx7-mcgf-j869.

Workarounds

  • Limit workflow creation and editing permissions to fully trusted users only as an interim measure
  • Disable the Merge node entirely by configuring the NODES_EXCLUDE environment variable
  • Implement network segmentation to limit the blast radius if the n8n server is compromised
  • Deploy web application firewall (WAF) rules to detect and block SQL injection attempts targeting the n8n interface
bash
# Disable the vulnerable Merge node temporarily
export NODES_EXCLUDE="n8n-nodes-base.merge"

# Restart n8n service to apply changes
systemctl restart n8n

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

  • Vulnerability Details
  • TypeSQLI

  • Vendor/TechN8n

  • SeverityCRITICAL

  • CVSS Score9.4

  • EPSS Probability0.06%

  • 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-89
  • Technical References
  • GitHub Release n8n@1.123.22

  • GitHub Release n8n@2.10.1

  • GitHub Release n8n@2.9.3

  • GitHub Security Advisory GHSA-wxx7-mcgf-j869
  • Related CVEs
  • CVE-2026-27578: n8n Workflow Automation XSS Vulnerability

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

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

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