A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Find Out Why
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
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • 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-21893

CVE-2026-21893: n8n Workflow Automation RCE Vulnerability

CVE-2026-21893 is a command injection RCE flaw in n8n workflow automation platform affecting versions 0.187.0 to before 1.120.3. Authenticated admins could execute arbitrary system commands on the host server.

Published: February 6, 2026

CVE-2026-21893 Overview

A command injection vulnerability has been identified in n8n, an open source workflow automation platform. This vulnerability exists in n8n's community package installation functionality, allowing authenticated users with administrative permissions to execute arbitrary system commands on the n8n host under specific conditions. The vulnerability affects versions from 0.187.0 to before 1.120.3.

Critical Impact

Authenticated administrators can achieve full system command execution on the underlying host, potentially leading to complete infrastructure compromise, data exfiltration, and lateral movement within the network.

Affected Products

  • n8n versions 0.187.0 through 1.120.2
  • Self-hosted n8n deployments with community package installation enabled
  • Docker and Kubernetes-based n8n installations running vulnerable versions

Discovery Timeline

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

Technical Details for CVE-2026-21893

Vulnerability Analysis

This command injection vulnerability (CWE-20: Improper Input Validation) exists in n8n's community package installation functionality. The platform allows administrators to install community-contributed nodes and packages to extend workflow capabilities. However, the input handling mechanism for package names or installation parameters fails to properly sanitize user-controlled data before passing it to system shell commands.

When an authenticated administrator attempts to install a community package, the vulnerability allows specially crafted input to break out of the intended command context and execute arbitrary system commands. This exploitation requires administrative privileges but can result in complete compromise of the underlying host system where n8n is deployed.

Root Cause

The root cause is improper input validation (CWE-20) in the community package installation handler. User-supplied input is not adequately sanitized before being incorporated into shell commands, allowing command separator characters and shell metacharacters to be interpreted by the underlying operating system. This represents a classic command injection pattern where trusted input boundaries are not enforced.

Attack Vector

The attack is network-based and requires the attacker to have authenticated administrative access to the n8n instance. Once authenticated, the attacker can leverage the community package installation feature to inject malicious commands. The attack flow typically involves:

  1. Authenticating to n8n with administrative credentials
  2. Navigating to the community package installation interface
  3. Crafting a malicious package name or parameter containing shell metacharacters
  4. Submitting the installation request to trigger command execution
  5. Achieving arbitrary command execution on the host system

The vulnerability exploitation mechanism involves injecting shell metacharacters into package installation parameters. For detailed technical analysis, refer to the GitHub Security Advisory.

Detection Methods for CVE-2026-21893

Indicators of Compromise

  • Unusual process spawning from n8n service processes (e.g., shells, system utilities)
  • Unexpected network connections originating from the n8n host
  • Anomalous entries in community package installation logs containing shell metacharacters
  • Signs of privilege escalation or lateral movement from the n8n server

Detection Strategies

  • Monitor system call activity from n8n processes for unauthorized command execution
  • Implement application-layer logging to capture all community package installation requests
  • Deploy file integrity monitoring on critical n8n directories and configuration files
  • Configure SIEM rules to alert on unusual process trees spawned by n8n services

Monitoring Recommendations

  • Enable verbose logging for n8n community package operations
  • Establish baseline behavior for n8n process activity and alert on deviations
  • Monitor for outbound connections from the n8n server to unknown destinations
  • Review authentication logs for suspicious administrative access patterns

How to Mitigate CVE-2026-21893

Immediate Actions Required

  • Upgrade n8n to version 1.120.3 or later immediately
  • Audit administrative user accounts and remove unnecessary privileges
  • Review recent community package installation logs for suspicious activity
  • Restrict network access to n8n administrative interfaces to trusted IP ranges

Patch Information

n8n has released version 1.120.3 which addresses this command injection vulnerability. The fix is available in the GitHub commit. Organizations should prioritize upgrading all n8n instances to this patched version. For detailed remediation guidance, consult the GitHub Security Advisory.

Workarounds

  • Disable community package installation functionality until patching is complete
  • Implement strict network segmentation to isolate n8n deployments from critical infrastructure
  • Enforce multi-factor authentication for all administrative accounts
  • Deploy web application firewalls to filter potentially malicious installation requests
bash
# Configuration example - Disable community packages in environment
export N8N_COMMUNITY_PACKAGES_ENABLED=false

# 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
  • TypeRCE

  • Vendor/TechN8n

  • SeverityCRITICAL

  • CVSS Score9.4

  • EPSS Probability0.37%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:H/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-20
  • Technical References
  • GitHub Commit History

  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-42234: N8n Workflow Automation RCE Vulnerability

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

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

  • CVE-2026-33696: n8n Workflow Automation RCE Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today 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