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

CVE-2026-25054: N8n Workflow Automation XSS Vulnerability

CVE-2026-25054 is a Cross-Site Scripting flaw in N8n workflow automation that allows authenticated users to execute scripts via malicious markdown content, leading to session hijacking. This article covers technical details, affected versions, impact, and mitigation.

Published: February 6, 2026

CVE-2026-25054 Overview

CVE-2026-25054 is a Cross-Site Scripting (XSS) vulnerability in n8n, an open source workflow automation platform. The vulnerability exists in a markdown rendering component used throughout n8n's interface, including workflow sticky notes and other areas that support markdown content. An authenticated user with permission to create or modify workflows can exploit this vulnerability to execute arbitrary scripts with same-origin privileges when other users interact with a maliciously crafted workflow.

Critical Impact

This vulnerability enables session hijacking and account takeover through malicious script execution in the context of other authenticated users' sessions.

Affected Products

  • n8n versions prior to 1.123.9
  • n8n versions prior to 2.2.1
  • n8n for Node.js (all affected versions)

Discovery Timeline

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

Technical Details for CVE-2026-25054

Vulnerability Analysis

This stored Cross-Site Scripting (XSS) vulnerability (CWE-79) resides in n8n's markdown rendering component. The vulnerability allows authenticated attackers to inject malicious JavaScript code that executes in the browsers of other users who view or interact with the compromised workflow. The attack requires network access and low privileges (authenticated user with workflow creation/modification permissions), combined with user interaction from the victim who must access the malicious workflow content.

The vulnerability is particularly concerning in multi-user n8n deployments where workflows are shared between team members. When a victim user views a workflow containing the malicious markdown payload—such as viewing a sticky note with embedded XSS—the injected script executes with the victim's session context. This enables the attacker to steal session tokens, perform actions on behalf of the victim, or escalate privileges within the n8n platform.

Root Cause

The root cause of this vulnerability is insufficient input sanitization in the markdown rendering component. When processing markdown content for display in sticky notes and other UI elements, the component fails to properly sanitize or escape malicious HTML and JavaScript payloads. This allows attackers to craft markdown content containing executable scripts that bypass the intended content security boundaries.

Attack Vector

The attack requires an authenticated user with workflow creation or modification permissions to inject malicious markdown content into a workflow. The attacker can leverage several injection points within n8n's interface:

  1. Workflow Sticky Notes - Text annotations added to workflows that support markdown formatting
  2. Other Markdown-Enabled Areas - Any interface component that renders user-supplied markdown content

When another authenticated user accesses the workflow containing the malicious markdown, the embedded script executes in their browser context. This enables the attacker to:

  • Capture session cookies and authentication tokens
  • Perform unauthorized actions using the victim's credentials
  • Exfiltrate sensitive data visible to the victim
  • Potentially escalate to full account takeover

The attack leverages the trust relationship between users sharing workflows, making it particularly effective in collaborative environments. For technical details on the vulnerability mechanism, refer to the GitHub Security Advisory.

Detection Methods for CVE-2026-25054

Indicators of Compromise

  • Unusual JavaScript payloads in workflow sticky notes or markdown-enabled fields
  • Suspicious workflow modifications by users who don't typically edit certain workflows
  • Session tokens appearing in outbound network requests to unauthorized destinations
  • Unexpected user activity patterns indicating potential session hijacking

Detection Strategies

  • Monitor workflow audit logs for creation or modification of workflows containing suspicious markdown content with script tags or event handlers
  • Implement Content Security Policy (CSP) headers to detect and block inline script execution attempts
  • Review access logs for unusual patterns of workflow access, particularly by users who don't normally collaborate
  • Deploy web application firewalls (WAF) with XSS detection rules to identify malicious payloads

Monitoring Recommendations

  • Enable comprehensive audit logging for all workflow creation and modification events
  • Configure alerts for workflows containing potential XSS patterns such as <script>, javascript:, or event handlers like onerror
  • Monitor for unusual session activity that may indicate compromised credentials from successful XSS attacks
  • Regularly review shared workflows for unauthorized or suspicious content modifications

How to Mitigate CVE-2026-25054

Immediate Actions Required

  • Upgrade n8n to version 1.123.9 or later for 1.x deployments
  • Upgrade n8n to version 2.2.1 or later for 2.x deployments
  • Audit existing workflows for suspicious markdown content that may contain malicious scripts
  • Review user access logs for signs of exploitation or unauthorized access

Patch Information

n8n has released security patches addressing this vulnerability in versions 1.123.9 and 2.2.1. Organizations should upgrade to these patched versions immediately to remediate the XSS vulnerability. Detailed patch information and upgrade instructions are available in the n8n Security Advisory.

Workarounds

  • Restrict workflow creation and modification permissions to trusted users only until patches can be applied
  • Implement network-level controls to limit which users can access shared workflows
  • Review and audit all existing workflow sticky notes and markdown content for potentially malicious payloads
  • Consider temporarily disabling markdown rendering in sticky notes if possible through configuration
bash
# Upgrade n8n to patched version
npm update n8n@1.123.9
# Or for 2.x installations
npm update n8n@2.2.1

# Verify 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
  • TypeXSS

  • Vendor/TechN8n

  • SeverityHIGH

  • CVSS Score8.5

  • EPSS Probability0.01%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:H/VI:H/VA:N/SC:N/SI:N/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
  • Vendor Resources
  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-27578: 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