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-2025-46343

CVE-2025-46343: N8n Workflow Automation XSS Vulnerability

CVE-2025-46343 is a stored XSS flaw in N8n workflow automation that lets attackers upload malicious HTML files to hijack user accounts. This article covers the technical details, affected versions, impact, and mitigation.

Updated: January 22, 2026

CVE-2025-46343 Overview

CVE-2025-46343 is a stored cross-site scripting (XSS) vulnerability affecting n8n, an open-source workflow automation platform. Prior to version 1.90.0, n8n allows authenticated users to upload and serve binary files through the attachments view endpoint without proper MIME type restrictions. An attacker can manipulate the MIME type via a GET parameter, enabling malicious HTML content containing JavaScript to be executed in the context of another user's browser session.

Critical Impact

This stored XSS vulnerability enables authenticated attackers with member-level permissions to execute arbitrary JavaScript in victims' browsers, potentially leading to account takeover through unauthorized email address changes.

Affected Products

  • n8n versions prior to 1.90.0
  • n8n workflow automation platform for Node.js
  • Self-hosted n8n installations without the security patch

Discovery Timeline

  • April 29, 2025 - CVE-2025-46343 published to NVD
  • May 9, 2025 - Last updated in NVD database

Technical Details for CVE-2025-46343

Vulnerability Analysis

This stored XSS vulnerability exists in n8n's binary file handling mechanism. The platform allows workflows to store and serve binary files accessible to authenticated users. The core issue stems from the absence of MIME type restrictions on uploaded files combined with a controllable MIME type parameter in the binary data endpoint.

When a user uploads a file, the server does not validate or restrict the file's MIME type. Furthermore, the endpoint that serves these binary files accepts a GET parameter that specifies the MIME type to use in the HTTP response. This architectural flaw allows an attacker to upload a crafted HTML file containing malicious JavaScript and then direct victims to access the file with text/html specified as the MIME type.

The vulnerability requires user interaction, as victims must be lured to visit the malicious endpoint. However, since the attack executes within the authenticated user's session context, the malicious script has full access to perform actions on behalf of the victim.

Root Cause

The root cause of CVE-2025-46343 is improper input validation and lack of output encoding in the binary file serving mechanism. Specifically:

  1. Missing MIME type validation: The application does not restrict or sanitize the types of files that can be uploaded
  2. User-controllable Content-Type header: The GET parameter allows attackers to override the Content-Type response header, bypassing browser content sniffing protections
  3. Insufficient output encoding: HTML content is served without proper sanitization when rendered with text/html MIME type

Attack Vector

The attack follows a multi-step exploitation chain:

  1. An authenticated attacker with member-level permissions uploads a crafted HTML file containing malicious JavaScript to an n8n workflow
  2. The attacker constructs a URL to the binary data endpoint with the MIME type parameter set to text/html
  3. The attacker social engineers another authenticated user into clicking the malicious link
  4. When the victim visits the URL, the server responds with the HTML file using the text/html Content-Type
  5. The victim's browser interprets and executes the embedded JavaScript in the context of the n8n application
  6. The malicious script can then perform actions such as changing the victim's email address in account settings, enabling account takeover

The attack scenario demonstrates how stored XSS can be leveraged for privilege escalation and account compromise within collaborative workflow automation environments.

Detection Methods for CVE-2025-46343

Indicators of Compromise

  • Unusual file uploads containing HTML or JavaScript content within n8n workflows
  • HTTP requests to binary data endpoints with suspicious MIME type parameters such as text/html
  • Unexpected account setting changes, particularly email address modifications
  • User sessions accessing binary endpoints with mismatched Content-Type headers

Detection Strategies

  • Monitor web server logs for requests to binary data endpoints containing MIME type manipulation in query parameters
  • Implement Content Security Policy (CSP) headers to detect and block inline script execution
  • Review workflow binary file contents for HTML tags and JavaScript code patterns
  • Audit user account changes for unauthorized email address modifications

Monitoring Recommendations

  • Enable detailed logging for all binary file upload and download operations in n8n
  • Configure alerts for Content-Type header manipulation attempts in application traffic
  • Deploy web application firewall (WAF) rules to detect XSS payloads in uploaded files
  • Monitor for anomalous user session behavior following binary file access

How to Mitigate CVE-2025-46343

Immediate Actions Required

  • Upgrade n8n to version 1.90.0 or later immediately
  • Review existing workflows for potentially malicious binary file uploads
  • Audit user account settings for unauthorized changes
  • Implement network-level controls to restrict access to n8n instances pending patching

Patch Information

The vulnerability has been addressed in n8n version 1.90.0. The fix was implemented through Pull Request #14350 and Pull Request #14685. Organizations should upgrade to the patched version as the primary remediation measure. Detailed information about the security fix is available in the GitHub Security Advisory GHSA-c8hm-hr8h-5xjw.

Workarounds

  • Restrict n8n access to trusted users only until patching can be completed
  • Implement Content Security Policy headers with strict script-src directives at the reverse proxy level
  • Configure web application firewall rules to block requests with text/html MIME type parameters to binary endpoints
  • Consider temporarily disabling binary file upload functionality if operationally feasible
bash
# Example: Add CSP headers in nginx reverse proxy configuration
# Add to your nginx server block for n8n
add_header Content-Security-Policy "default-src 'self'; script-src 'self'; object-src 'none';" always;
add_header X-Content-Type-Options "nosniff" always;

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

  • Vulnerability Details
  • TypeXSS

  • Vendor/TechN8n

  • SeverityMEDIUM

  • CVSS Score5.4

  • EPSS Probability0.03%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityLow
  • AvailabilityNone
  • CWE References
  • CWE-79
  • Technical References
  • GitHub Release n8n v1.90.0
  • Vendor Resources
  • GitHub Pull Request #14350

  • GitHub Pull Request #14685

  • GitHub Security Advisory GHSA-c8hm-hr8h-5xjw
  • Related CVEs
  • CVE-2026-27578: n8n Workflow Automation XSS Vulnerability

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

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