The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
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
    • 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-26023

CVE-2026-26023: Dify LLM Platform XSS Vulnerability

CVE-2026-26023 is a cross-site scripting flaw in Dify's chat frontend that executes malicious JavaScript through echarts. Attackers can exploit user or LLM inputs to run unauthorized code. This article covers technical details, affected versions, impact, and mitigation strategies.

Published: February 13, 2026

CVE-2026-26023 Overview

CVE-2026-26023 is a Cross-Site Scripting (XSS) vulnerability discovered in Dify, an open-source LLM (Large Language Model) application development platform. The vulnerability exists in the web application chat frontend when using ECharts for data visualization. Prior to version 1.13.0, user or LLM inputs containing ECharts data with specific JavaScript payloads are executed without proper sanitization, allowing attackers to inject and execute arbitrary JavaScript code in victims' browsers.

Critical Impact

Attackers can inject malicious JavaScript through ECharts inputs in the chat interface, potentially leading to session hijacking, credential theft, or malicious actions performed on behalf of authenticated users interacting with Dify-powered applications.

Affected Products

  • Dify versions prior to 1.13.0
  • Dify web application chat frontend with ECharts integration
  • Self-hosted and cloud-deployed Dify instances using vulnerable versions

Discovery Timeline

  • February 11, 2026 - CVE-2026-26023 published to NVD
  • February 12, 2026 - Last updated in NVD database

Technical Details for CVE-2026-26023

Vulnerability Analysis

This Cross-Site Scripting vulnerability (CWE-79) occurs in Dify's web chat frontend when processing ECharts visualization data. ECharts is a popular JavaScript charting library that supports dynamic content rendering, including event handlers and formatter functions. The vulnerability arises because the Dify chat interface fails to properly sanitize or restrict JavaScript execution within ECharts configuration objects before rendering them in the user's browser.

When users interact with LLM-powered applications built on Dify, the chat interface can display rich content including charts. An attacker can craft malicious ECharts configuration payloads that contain embedded JavaScript. When this payload is processed by the frontend, the malicious JavaScript executes in the context of the victim's browser session.

Root Cause

The root cause of this vulnerability is improper input validation and sanitization in the ECharts rendering pipeline. The Dify frontend does not adequately filter or escape JavaScript code embedded within ECharts configuration objects received from user inputs or LLM responses. ECharts supports callback functions in various configuration options such as formatter, tooltip, and event handlers, which can be abused to execute arbitrary JavaScript.

Attack Vector

The attack leverages network-accessible chat functionality with user interaction required. An attacker can exploit this vulnerability through several vectors:

  1. Direct User Input: An attacker could craft a message containing a malicious ECharts payload in systems where user inputs are rendered as charts
  2. LLM Response Manipulation: Through prompt injection techniques, an attacker could manipulate an LLM to generate responses containing malicious ECharts configurations
  3. Stored XSS: If malicious payloads are stored and later rendered to other users, this becomes a stored XSS vulnerability affecting all users who view the content

The vulnerability requires user interaction—a victim must view the malicious content in their browser for the JavaScript payload to execute. Once executed, the attacker's JavaScript can access cookies, session tokens, and perform actions as the authenticated user.

Detection Methods for CVE-2026-26023

Indicators of Compromise

  • Unusual JavaScript execution patterns in browser console logs when viewing Dify chat interfaces
  • Network requests to unexpected external domains originating from Dify chat pages
  • Suspicious ECharts configurations containing callback functions or inline JavaScript in stored chat data
  • User reports of unexpected browser behavior or redirects when using Dify applications

Detection Strategies

  • Implement Content Security Policy (CSP) monitoring to detect unauthorized script execution attempts
  • Review server-side logs for chat messages containing ECharts configurations with JavaScript keywords such as function, eval, script, or event handlers
  • Deploy web application firewalls (WAF) with XSS detection rules to identify malicious payloads in requests
  • Enable browser developer tools monitoring during security testing to identify unexpected script execution

Monitoring Recommendations

  • Configure alerting for CSP violation reports indicating inline script execution attempts
  • Monitor for unusual patterns in chat content containing ECharts-related JSON structures
  • Implement anomaly detection for chat sessions that generate unexpected network requests
  • Review application logs for repeated attempts to inject special characters or JavaScript syntax

How to Mitigate CVE-2026-26023

Immediate Actions Required

  • Upgrade Dify to version 1.13.0 or later immediately to address this vulnerability
  • Review chat logs and stored content for any evidence of exploitation attempts prior to patching
  • Implement a Content Security Policy (CSP) that restricts inline script execution as a defense-in-depth measure
  • Audit any user-generated or LLM-generated content that may have been stored and could contain malicious payloads

Patch Information

The vulnerability has been addressed in Dify version 1.13.0. The fix implements proper sanitization of ECharts configuration data to prevent JavaScript execution from untrusted inputs. Organizations should upgrade to this version or later to remediate the vulnerability.

For detailed information about the security fix, refer to the GitHub Security Advisory GHSA-qqjx-5h5w-x5vj. The specific commit addressing this vulnerability can be reviewed at GitHub Commit 378a1d7d, and the patched release is available at Dify Release 1.13.0.

Workarounds

  • If immediate upgrade is not possible, consider disabling ECharts functionality in the chat frontend until the patch can be applied
  • Implement server-side content filtering to strip or reject ECharts configurations containing JavaScript functions or event handlers
  • Deploy a reverse proxy or WAF rule to block requests containing suspicious JavaScript patterns in chat payloads
  • Restrict access to Dify applications to trusted users only until the vulnerability is remediated
bash
# Example: Implementing a Content Security Policy header in nginx
# Add to your Dify nginx configuration
add_header Content-Security-Policy "default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self' data:; connect-src 'self';" always;

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

  • Vulnerability Details
  • TypeXSS

  • Vendor/TechDify

  • SeverityMEDIUM

  • CVSS Score5.3

  • EPSS Probability0.04%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/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
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-79
  • Technical References
  • GitHub Commit Update

  • GitHub Release 1.13.0

  • GitHub Security Advisory GHSA-qqjx-5h5w-x5vj
  • Related CVEs
  • CVE-2026-21866: Dify Stored XSS Vulnerability

  • CVE-2026-28288: Dify Information Disclosure Vulnerability

  • CVE-2025-67732: Dify LLM API Key Exposure 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
  • 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