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
    • 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-6619

CVE-2026-6619: Langgenius Dify XSS Vulnerability

CVE-2026-6619 is a cross-site scripting flaw in Langgenius Dify up to version 1.13.3 affecting the ImagePreview component. Attackers can exploit this remotely via filename manipulation. This article covers technical details, affected versions, impact, and mitigation strategies.

Published: April 23, 2026

CVE-2026-6619 Overview

A Cross-Site Scripting (XSS) vulnerability has been discovered in Langgenius Dify, an open-source LLM application development platform. The vulnerability exists in the openInNewTab function within the ImagePreview component located at web/app/components/base/image-uploader/image-preview.tsx. Improper sanitization of the filename argument allows remote attackers to inject malicious scripts, potentially compromising user sessions and application integrity.

Critical Impact

Remote attackers can inject arbitrary JavaScript code through manipulated filename parameters, enabling session hijacking, credential theft, and unauthorized actions on behalf of authenticated users.

Affected Products

  • Langgenius Dify versions up to and including 1.13.3
  • Dify ImagePreview component (web/app/components/base/image-uploader/image-preview.tsx)

Discovery Timeline

  • 2026-04-20 - CVE-2026-6619 published to NVD
  • 2026-04-22 - Last updated in NVD database

Technical Details for CVE-2026-6619

Vulnerability Analysis

This vulnerability is classified as CWE-79 (Improper Neutralization of Input During Web Page Generation), commonly known as Cross-Site Scripting. The flaw resides in the ImagePreview component's handling of user-supplied filename data when opening images in a new browser tab.

The openInNewTab function fails to properly sanitize or encode the filename parameter before incorporating it into the rendered output. This allows an attacker to craft a malicious filename containing JavaScript code that executes in the context of a victim's browser session when they interact with the affected component.

The attack requires user interaction (clicking to preview an image) and authenticated access to the Dify platform. However, the network-accessible nature of the vulnerability means it can be exploited remotely against any user with access to the affected component.

Root Cause

The root cause is insufficient input validation and output encoding in the openInNewTab function within the ImagePreview component. When processing the filename argument, the application fails to sanitize special characters and HTML/JavaScript content before rendering, allowing script injection through carefully crafted filenames.

Attack Vector

The vulnerability is exploitable via network access. An attacker can upload or reference an image with a maliciously crafted filename containing embedded JavaScript. When a victim user interacts with the ImagePreview component to open the image in a new tab, the unsanitized filename is processed, causing the injected script to execute in the victim's browser context.

The exploitation mechanism involves crafting a filename that breaks out of the expected rendering context and injects executable JavaScript. Technical details and proof-of-concept code are available through the GitHub Gist PoC and VulDB submission #792242.

Detection Methods for CVE-2026-6619

Indicators of Compromise

  • Unusual JavaScript execution patterns originating from image preview interactions
  • Filenames containing encoded script tags, event handlers (e.g., onerror, onload), or javascript: URIs
  • Unexpected network requests to external domains following image preview actions
  • Session tokens or authentication data being transmitted to unauthorized endpoints

Detection Strategies

  • Implement Content Security Policy (CSP) headers to detect and block inline script execution attempts
  • Monitor application logs for suspicious filename patterns containing HTML entities, script tags, or JavaScript event handlers
  • Deploy Web Application Firewall (WAF) rules to detect XSS payloads in filename parameters
  • Use browser-based XSS auditing and sanitization libraries to flag malicious content

Monitoring Recommendations

  • Enable detailed logging for the ImagePreview component and related file upload functionality
  • Monitor for anomalous user session behavior following image preview interactions
  • Implement real-time alerting for CSP violation reports indicating blocked script execution attempts

How to Mitigate CVE-2026-6619

Immediate Actions Required

  • Upgrade Langgenius Dify to a version newer than 1.13.3 when a patch becomes available
  • Implement server-side filename sanitization to strip or encode potentially dangerous characters
  • Apply Content Security Policy headers to prevent inline script execution
  • Review and audit any user-uploaded filenames currently stored in the system

Patch Information

At the time of disclosure, the vendor (Langgenius) was contacted but did not respond. Users should monitor the official Dify GitHub repository for security updates. Additional vulnerability tracking information is available via VulDB #358254.

Workarounds

  • Implement input sanitization middleware to encode or reject filenames containing special characters (<, >, ", ', &, script tags)
  • Deploy a reverse proxy or WAF with XSS filtering capabilities to inspect and sanitize request/response content
  • Restrict access to the ImagePreview component to trusted users until a patch is available
  • Apply CSP headers with script-src 'self' to prevent execution of injected inline scripts
bash
# Example Content Security Policy header configuration for Nginx
add_header Content-Security-Policy "default-src 'self'; script-src 'self'; object-src 'none'; base-uri '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/TechLanggenius

  • SeverityMEDIUM

  • CVSS Score5.1

  • EPSS Probability0.03%

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

  • VulDB Submit #792242

  • VulDB Vulnerability #358254

  • VulDB Threat Report #358254
  • Related CVEs
  • CVE-2026-6617: Langgenius Dify SSRF Vulnerability

  • CVE-2026-6618: Langgenius Dify SSRF Vulnerability
Default Legacy - Prefooter | 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