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

CVE-2026-41949: Dify Authorization Bypass Vulnerability

CVE-2026-41949 is an authorization bypass flaw in Dify that allows authenticated users to read up to 3,000 characters from any uploaded document across all tenants. This article covers technical details, affected versions, and mitigation.

Published: May 21, 2026

CVE-2026-41949 Overview

CVE-2026-41949 is an authorization bypass vulnerability affecting Dify version 1.14.1 and prior. The flaw resides in the /console/api/files/{file_id}/preview endpoint, which fails to verify ownership or workspace membership before returning file content. Any authenticated user can read up to 3,000 characters of any uploaded document across all tenants and workspaces using only the file's Universally Unique Identifier (UUID). On Dify Cloud, free self-registration is open, so any attacker can obtain valid credentials and exploit the endpoint. The issue is tracked under [CWE-639] Authorization Bypass Through User-Controlled Key.

Critical Impact

Authenticated attackers can read sensitive content from documents belonging to any tenant or workspace by supplying intercepted or guessed file UUIDs.

Affected Products

  • Dify versions 1.14.1 and earlier
  • Dify Cloud (multi-tenant SaaS deployment)
  • Self-hosted Dify deployments using the affected console API

Discovery Timeline

  • 2026-05-18 - CVE-2026-41949 published to the National Vulnerability Database (NVD)
  • 2026-05-19 - Last updated in NVD database

Technical Details for CVE-2026-41949

Vulnerability Analysis

Dify is an open-source platform for building large language model (LLM) applications. The console API exposes a file preview endpoint at /console/api/files/{file_id}/preview intended to render uploaded documents within the user's workspace. The endpoint authenticates the caller but does not authorize the request against the file's owning tenant or workspace. As a result, any logged-in user can pass an arbitrary file UUID and receive back the first 3,000 characters of the underlying document.

The impact is amplified on Dify Cloud, which permits unauthenticated self-registration. An attacker registers a free account, obtains a valid session, and immediately gains the ability to query the endpoint across the entire multi-tenant environment. Documents uploaded for retrieval-augmented generation (RAG) pipelines often contain proprietary source code, internal documentation, customer records, and credentials, all of which become readable through this endpoint.

Root Cause

The root cause is missing authorization logic in the file preview handler. The endpoint resolves the file by its UUID primary key without joining against the requesting user's tenant or workspace context. This is a textbook Insecure Direct Object Reference (IDOR) pattern classified as [CWE-639]. The UUID is treated as a capability token, but UUIDs are not designed to be unguessable secrets and frequently leak through logs, referrer headers, and shared links.

Attack Vector

An attacker obtains a valid Dify account through self-registration on Dify Cloud or any accessible self-hosted instance. The attacker then enumerates or intercepts file UUIDs through shared links, browser history, referer leakage, or by harvesting UUIDs from collaborators. With a valid UUID in hand, the attacker issues a GET request to /console/api/files/{file_id}/preview using their own session token. The server returns up to 3,000 characters of file content regardless of which tenant uploaded the document. No elevated privileges, user interaction, or social engineering is required.

No public proof-of-concept exploit code is available. See the VulnCheck Security Advisory and Huntr Bounty Report for additional technical context.

Detection Methods for CVE-2026-41949

Indicators of Compromise

  • High request volume from a single authenticated session to /console/api/files/*/preview with varying file_id UUIDs
  • Requests to the preview endpoint where the file_id does not correspond to any file owned by the requesting user's tenant
  • Newly registered Dify Cloud accounts issuing preview requests within minutes of signup
  • Sequential or randomized UUID enumeration patterns in application access logs

Detection Strategies

  • Audit reverse proxy and application logs for cross-tenant access patterns on the /console/api/files/{file_id}/preview route
  • Correlate the authenticated user_id and tenant_id against the resolved file's owning tenant for each preview request
  • Alert when a single account previews files belonging to more than one tenant within a short window
  • Flag accounts that register and immediately begin querying file preview endpoints

Monitoring Recommendations

  • Forward Dify console API logs to a centralized logging or Security Information and Event Management (SIEM) platform for retention and analysis
  • Build dashboards tracking preview endpoint request rates per account and per source IP
  • Monitor for anomalous spikes in 200 responses from the preview endpoint following account creation events

How to Mitigate CVE-2026-41949

Immediate Actions Required

  • Upgrade Dify to a version later than 1.14.1 that includes the fix from GitHub Pull Request #35797
  • Restrict access to the /console/api/files/{file_id}/preview endpoint at the network or reverse proxy layer until patches are applied
  • Review historical access logs for evidence of cross-tenant preview requests and notify affected tenants if exposure is confirmed
  • Disable open self-registration on production Dify instances where multi-tenant isolation matters

Patch Information

The maintainers addressed the vulnerability in GitHub Pull Request #35797, which adds tenant and workspace authorization checks to the file preview handler. Operators of self-hosted Dify deployments should upgrade to the patched release. Dify Cloud customers receive the fix automatically through the managed service.

Workarounds

  • Place the Dify console API behind a reverse proxy that enforces additional access control on the /console/api/files/*/preview path
  • Rotate any secrets, API keys, or credentials that may have been included in uploaded knowledge base documents
  • Re-upload sensitive documents with new UUIDs after patching to invalidate any UUIDs that may have leaked
bash
# Example NGINX block restricting the preview endpoint to internal networks until patched
location ~ ^/console/api/files/[^/]+/preview$ {
    allow 10.0.0.0/8;
    deny all;
    proxy_pass http://dify_backend;
}

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

  • SeverityHIGH

  • CVSS Score8.2

  • EPSS Probability0.03%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:H/VI:N/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 Report

  • VulnCheck Security Advisory
  • Vendor Resources
  • GitHub Pull Request
  • Related CVEs
  • CVE-2026-41947: 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