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

CVE-2026-27578: n8n Workflow Automation XSS Vulnerability

CVE-2026-27578 is a cross-site scripting flaw in n8n workflow automation that allows authenticated users to inject malicious scripts, enabling session hijacking. This post covers technical details, affected versions, and mitigation.

Published: February 27, 2026

CVE-2026-27578 Overview

CVE-2026-27578 is a stored Cross-Site Scripting (XSS) vulnerability in n8n, an open source workflow automation platform. An authenticated user with permission to create or modify workflows can inject arbitrary scripts into pages rendered by the n8n application using multiple injection vectors across various nodes including Form Trigger, Chat Trigger, Send & Wait, Webhook, and Chat nodes. The injected scripts execute in the browser context of any user who visits the affected page, enabling session hijacking and account takeover.

Critical Impact

Authenticated attackers can inject malicious scripts that execute in other users' browsers, leading to session hijacking, credential theft, and complete account takeover across the n8n platform.

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-27578 published to NVD
  • 2026-02-25 - Last updated in NVD database

Technical Details for CVE-2026-27578

Vulnerability Analysis

This vulnerability is classified as CWE-79 (Improper Neutralization of Input During Web Page Generation), commonly known as Cross-Site Scripting. The n8n workflow automation platform failed to properly sanitize user-controlled input across multiple node types before rendering content in web pages. When authenticated users with workflow creation or modification permissions configure specific nodes, their input is passed directly to the rendered HTML output without adequate sanitization, allowing JavaScript code to execute in the context of other users' browser sessions.

The vulnerability affects multiple attack surfaces within n8n: the Form Trigger node, Chat Trigger node, Send & Wait node, Webhook Node, and Chat Node. Each of these nodes processes user input that eventually gets rendered in the browser, making them susceptible to XSS payload injection.

Root Cause

The root cause of this vulnerability lies in insufficient input sanitization across multiple n8n node components. Specifically, the allowedFilesMimeTypes parameter and other user-controlled inputs were passed directly to template rendering without proper sanitization. The fix implemented in the security patches applies sanitizeUserInput() to these values before they are included in the generated HTML output.

Additionally, the Chat Trigger authentication logic had a flaw where cookie validation could be bypassed during the setup webhook phase, potentially allowing unauthorized access to sensitive functionality.

Attack Vector

An attacker with authenticated access to the n8n platform and workflow creation/modification permissions can exploit this vulnerability through the following attack flow:

  1. The attacker creates or modifies a workflow containing a vulnerable node (Form Trigger, Chat Trigger, Send & Wait, Webhook, or Chat Node)
  2. The attacker injects malicious JavaScript payload into a node configuration field that accepts user input
  3. When another user (including administrators) visits a page that renders the compromised workflow component, the malicious script executes in their browser
  4. The script can steal session cookies, perform actions on behalf of the victim, or redirect users to phishing pages
typescript
// Vulnerable code (before patch) - templates.ts
// User input was passed directly without sanitization
const sanitizedShowWelcomeScreen = !!showWelcomeScreen;
const sanitizedAllowFileUploads = !!allowFileUploads;
-const sanitizedAllowedFilesMimeTypes = allowedFilesMimeTypes?.toString() ?? '';
+const sanitizedAllowedFilesMimeTypes = sanitizeUserInput(allowedFilesMimeTypes?.toString() ?? '');
const sanitizedCustomCss = sanitizeHtml(`<style>${customCss?.toString() ?? ''}</style>`, {
    allowedTags: ['style'],
    allowedAttributes: false,

Source: GitHub Commit

typescript
// Authentication bypass fix - GenericFunctions.ts
// Before: Cookie validation could be skipped during setup
} else if (authentication === 'n8nUserAuth') {
    const webhookName = context.getWebhookName();

+   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 && webhookName !== 'setup') {
-           throw new ChatTriggerAuthorizationError(500, 'User not authenticated!');
+       if (!authCookie) {
+           throw new ChatTriggerAuthorizationError(401, 'User not authenticated!');
        }
+   }

Source: GitHub Commit

Detection Methods for CVE-2026-27578

Indicators of Compromise

  • Unusual JavaScript patterns in workflow node configurations, particularly in Form Trigger, Chat Trigger, Send & Wait, Webhook, or Chat nodes
  • Workflow modifications containing script tags, event handlers (onclick, onerror, onload), or encoded JavaScript payloads
  • Unexpected outbound network requests from user browsers when interacting with n8n workflows
  • Session token exfiltration attempts visible in network traffic logs

Detection Strategies

  • Review n8n workflow configurations for suspicious script content in node parameters, especially allowedFilesMimeTypes and custom CSS fields
  • Monitor browser console output for unexpected JavaScript execution when loading n8n pages
  • Implement Content Security Policy (CSP) headers to detect and block inline script execution attempts
  • Audit workflow change logs for modifications by users who shouldn't have elevated permissions

Monitoring Recommendations

  • Enable detailed logging for workflow creation and modification events in n8n
  • Monitor for unusual patterns in authenticated user behavior, particularly bulk workflow modifications
  • Set up alerts for session anomalies that could indicate session hijacking following XSS exploitation
  • Review web server access logs for unusual patterns in webhook endpoint access

How to Mitigate CVE-2026-27578

Immediate Actions Required

  • Upgrade n8n to version 2.10.1, 2.9.3, or 1.123.22 or later immediately
  • Review all existing workflows for potential malicious script injections in vulnerable node types
  • Audit user permissions and restrict workflow creation/editing to fully trusted users only
  • Consider temporarily disabling the Webhook node if immediate upgrade is not possible

Patch Information

n8n has released security patches addressing this vulnerability. Users should upgrade to one of the following patched versions:

  • n8n version 2.10.1 or later
  • n8n version 2.9.3 or later (for 2.9.x branch)
  • n8n version 1.123.22 or later (for 1.x branch)

The patches implement proper input sanitization using sanitizeUserInput() for user-controlled parameters and fix authentication logic in the Chat Trigger node. For detailed technical information, refer to the GitHub Security Advisory GHSA-2p9h-rqjw-gm92.

Workarounds

  • Limit workflow creation and editing permissions to fully trusted users only by reviewing n8n's role-based access control settings
  • Disable the Webhook node by adding n8n-nodes-base.webhook to the NODES_EXCLUDE environment variable as a temporary measure
  • Implement Content Security Policy headers to mitigate the impact of XSS attacks
  • Monitor and audit all existing workflows created by untrusted users for malicious content
bash
# Temporary workaround: Disable vulnerable Webhook node
# Add to n8n environment configuration
export NODES_EXCLUDE="n8n-nodes-base.webhook"

# Restart n8n service to apply the change
systemctl restart n8n

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

  • Vulnerability Details
  • TypeXSS

  • Vendor/TechN8n

  • SeverityHIGH

  • CVSS Score8.5

  • EPSS Probability0.03%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:H/VI:H/VA:N/SC:L/SI:L/SA:N/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
  • IntegrityHigh
  • AvailabilityNone
  • CWE References
  • CWE-79
  • Technical References
  • GitHub Commit Changes

  • GitHub Commit Fixes

  • GitHub Commit Update

  • GitHub Security Advisory GHSA-2p9h-rqjw-gm92
  • Related CVEs
  • CVE-2026-25054: N8n Workflow Automation XSS Vulnerability

  • CVE-2026-25051: N8n Workflow Automation XSS Vulnerability

  • CVE-2025-46343: N8n Workflow Automation XSS Vulnerability

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