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

CVE-2026-41947: Dify Authorization Bypass Vulnerability

CVE-2026-41947 is an authorization bypass vulnerability in Dify that allows editor users to hijack trace configurations across tenants. This article covers the technical details, affected versions, and mitigation strategies.

Published: May 21, 2026

CVE-2026-41947 Overview

CVE-2026-41947 is an authorization bypass vulnerability in Dify version 1.14.1 and prior. The flaw resides in the trace configuration endpoints, which fail to verify tenant ownership before allowing authenticated editor users to modify trace settings. Attackers can enable and configure trace providers for any application across tenant boundaries, redirecting all messages and model responses from victim applications to attacker-controlled large language model (LLM) trace providers. The exposure is amplified on Dify Cloud, where unauthenticated free self-registration permits any attacker to obtain a valid account. The issue is tracked as [CWE-639] Authorization Bypass Through User-Controlled Key.

Critical Impact

Authenticated attackers can exfiltrate every prompt, response, and conversation flowing through any tenant's Dify applications by hijacking trace configuration.

Affected Products

  • Dify version 1.14.1
  • All Dify versions prior to 1.14.1
  • Dify Cloud (multi-tenant SaaS deployment)

Discovery Timeline

  • 2026-05-18 - CVE-2026-41947 published to NVD
  • 2026-05-19 - Last updated in NVD database

Technical Details for CVE-2026-41947

Vulnerability Analysis

Dify is an open-source LLM application development platform supporting multi-tenant deployments. The platform integrates with external observability providers, known as trace providers, to capture prompts, completions, and model interactions for debugging and analytics. Trace configuration endpoints control which provider receives this telemetry and the credentials used for transmission.

In affected versions, these endpoints validate that the caller holds the editor role but do not verify that the targeted application belongs to the caller's tenant. An authenticated user in tenant A can submit requests referencing an application identifier owned by tenant B and successfully write a new trace configuration to that application. Once enabled, all subsequent interactions on the victim application are mirrored to the attacker-supplied trace endpoint, exposing user prompts, model outputs, system instructions, and embedded secrets.

Root Cause

The root cause is a missing tenant ownership check within the trace configuration handlers. The authorization layer enforces role-based access control but treats the application identifier supplied by the client as trusted. Because Dify Cloud permits free self-registration, the attacker pre-condition of holding an authenticated editor session is trivial to satisfy.

Attack Vector

The attack is performed over the network against the Dify API. An attacker registers an account, obtains an editor role within their own workspace, and then issues authenticated HTTP requests to the trace configuration endpoints supplying the victim application's identifier together with an attacker-controlled provider URL and API key. After the configuration is enabled, the attacker passively collects all telemetry forwarded by the victim application. No interaction from the victim tenant is required.

No public proof-of-concept code or exploitation tooling has been released for this issue. Refer to the Vulncheck Advisory on Dify and the Huntr Bounty Listing for technical details.

Detection Methods for CVE-2026-41947

Indicators of Compromise

  • Trace configuration records referencing application identifiers whose tenant_id does not match the configuring user's tenant.
  • Outbound HTTPS traffic from Dify worker processes to unrecognized LLM observability domains such as unfamiliar Langfuse, LangSmith, or Opik endpoints.
  • Recent editor account registrations on Dify Cloud followed by API calls to trace configuration endpoints for applications they did not create.

Detection Strategies

  • Audit the Dify database for trace configuration rows and cross-reference the configuring user's tenant against the owning application's tenant. Any mismatch indicates exploitation.
  • Review API access logs for requests to trace configuration endpoints where the authenticated user's tenant differs from the target application's tenant.
  • Inspect application telemetry settings for provider URLs pointing to domains outside the organization's approved observability stack.

Monitoring Recommendations

  • Enable egress monitoring on Dify hosts and alert on connections to newly observed external API endpoints.
  • Log every change to trace configuration with the acting user, tenant, target application, and new provider endpoint, then forward these events to a centralized SIEM for correlation.
  • Establish baseline behavior for trace provider domains and alert when new providers are introduced.

How to Mitigate CVE-2026-41947

Immediate Actions Required

  • Upgrade Dify to a version that includes the fix from Dify Pull Request #35793 without delay.
  • Enumerate every trace configuration in the deployment and remove or reset entries whose configuring user does not belong to the owning application's tenant.
  • Rotate API keys and credentials that may have been exposed through trace data forwarded to unauthorized providers.

Patch Information

The vendor fix is delivered in Dify Pull Request #35793, which adds tenant ownership validation to the trace configuration endpoints. Self-hosted operators should pull the patched release and redeploy. Dify Cloud customers receive the fix through the managed service update.

Workarounds

  • Restrict creation of editor role accounts and disable open self-registration on self-hosted instances until the patch is applied.
  • Place the Dify API behind an authenticating reverse proxy that blocks trace configuration endpoints for non-administrative users as a temporary control.
  • Use network egress policies to allow-list only approved trace provider domains from Dify worker hosts, neutralizing redirection to attacker infrastructure.

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

  • Vulnerability Details
  • TypeAuth Bypass

  • Vendor/TechDify

  • SeverityCRITICAL

  • CVSS Score9.1

  • EPSS Probability0.03%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/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
  • ConfidentialityHigh
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-639
  • Technical References
  • Huntr Bounty Listing

  • Vulncheck Advisory on Dify
  • Vendor Resources
  • GitHub Pull Request Update
  • Related CVEs
  • CVE-2026-41949: Dify Authorization Bypass Vulnerability

  • CVE-2026-41950: Dify Authorization Bypass Vulnerability

  • CVE-2026-34082: Dify Authorization Bypass Vulnerability

  • CVE-2026-41948: Dify Path Traversal Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today 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