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

CVE-2026-25056: N8n Workflow Automation RCE Vulnerability

CVE-2026-25056 is a remote code execution vulnerability in N8n workflow automation platform affecting the Merge node's SQL Query mode. Attackers can write arbitrary files to the server filesystem. This article covers technical details, affected versions, impact, and mitigation strategies.

Published: February 6, 2026

CVE-2026-25056 Overview

CVE-2026-25056 is a critical arbitrary file write vulnerability affecting n8n, a popular open source workflow automation platform. The vulnerability exists in the Merge node's SQL Query mode, where authenticated users with permission to create or modify workflows can write arbitrary files to the n8n server's filesystem. This file write capability can be leveraged to achieve remote code execution (RCE), making this a severe security issue for organizations running vulnerable versions of n8n.

Critical Impact

Authenticated attackers can write arbitrary files to the server filesystem, potentially leading to complete system compromise through remote code execution.

Affected Products

  • n8n versions prior to 1.118.0
  • n8n versions prior to 2.4.0
  • n8n workflow automation platform for Node.js

Discovery Timeline

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

Technical Details for CVE-2026-25056

Vulnerability Analysis

This vulnerability is classified as CWE-434 (Unrestricted Upload of Dangerous File Type), though in this case it manifests specifically as an arbitrary file write condition within the Merge node component. The attack requires network access and low-level privileges (authenticated user with workflow creation or modification permissions), but once these prerequisites are met, exploitation requires no user interaction and has low attack complexity.

The impact is severe across all three security dimensions: confidentiality, integrity, and availability are all highly impacted. Furthermore, the vulnerability has scope change implications, meaning a successful exploit can affect resources beyond the vulnerable component itself, potentially compromising the entire server infrastructure.

Root Cause

The root cause of this vulnerability lies in insufficient input validation and path sanitization within the Merge node's SQL Query mode functionality. When processing SQL queries, the component fails to properly validate or restrict file paths, allowing authenticated users to specify arbitrary filesystem locations for file write operations. This lack of proper boundary enforcement enables attackers to write files to sensitive directories on the n8n server.

Attack Vector

The attack is network-based and exploits the Merge node's SQL Query mode feature. An authenticated attacker with workflow creation or modification privileges can craft a malicious workflow that abuses the SQL Query mode to write arbitrary content to arbitrary locations on the server filesystem.

The exploitation path typically follows this pattern:

  1. Attacker authenticates to the n8n platform with appropriate workflow privileges
  2. Attacker creates or modifies a workflow containing a Merge node configured with SQL Query mode
  3. Attacker crafts the SQL query parameters to specify a malicious file path and content
  4. Upon workflow execution, the arbitrary file is written to the server filesystem
  5. Attacker leverages the written file (e.g., web shell, cron job, SSH key) to achieve remote code execution

For detailed technical information about the exploitation mechanism, refer to the GitHub Security Advisory.

Detection Methods for CVE-2026-25056

Indicators of Compromise

  • Unexpected file creation events in sensitive directories (e.g., /tmp, web roots, cron directories, SSH configuration paths)
  • Workflow configurations containing suspicious Merge nodes with SQL Query mode targeting filesystem paths
  • Unusual workflow execution patterns from accounts with limited business need for file operations
  • New or modified files in application directories that do not match expected deployment artifacts

Detection Strategies

  • Monitor n8n workflow audit logs for creation or modification of workflows containing Merge nodes with SQL Query mode
  • Implement file integrity monitoring (FIM) on the n8n server to detect unauthorized file writes
  • Review user permissions and identify accounts with workflow creation/modification privileges for potential abuse
  • Deploy endpoint detection and response (EDR) solutions to identify post-exploitation activities following arbitrary file writes

Monitoring Recommendations

  • Enable comprehensive logging for all workflow creation, modification, and execution events in n8n
  • Configure alerts for file write operations to directories outside normal application scope
  • Monitor for execution of newly created files or scripts on the n8n server
  • Implement network monitoring to detect reverse shells or C2 communications that may follow successful exploitation

How to Mitigate CVE-2026-25056

Immediate Actions Required

  • Upgrade n8n to version 1.118.0 or 2.4.0 (or later) immediately
  • Review all existing workflows for suspicious Merge node configurations with SQL Query mode
  • Audit user accounts with workflow creation/modification permissions and apply principle of least privilege
  • Conduct forensic analysis of the n8n server filesystem to identify any unauthorized file writes

Patch Information

n8n has addressed this vulnerability in versions 1.118.0 and 2.4.0. Organizations should upgrade to these patched versions or later as the primary remediation action. The security advisory is available at the GitHub Security Advisory page.

Affected VersionFixed Version
< 1.118.01.118.0
< 2.4.02.4.0

Workarounds

  • Restrict workflow creation and modification permissions to only trusted administrative users until patching is complete
  • Implement network segmentation to limit the blast radius of a potential compromise
  • Deploy application-level firewall rules to restrict access to the n8n interface
  • Consider temporarily disabling the Merge node's SQL Query mode functionality if operationally feasible
bash
# Upgrade n8n to patched version using npm
npm update n8n@latest

# Verify the installed version
n8n --version

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

  • 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-434
  • Vendor Resources
  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-25115: 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