Skip to main content

Dify CVE-2026-41950

| EUVDEUVD-2026-27504 MEDIUM
Authorization Bypass Through User-Controlled Key (CWE-639)
2026-05-05 VulnCheck
6.0
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate to Dify workspace
  2. Delivery
    Identify or enumerate target user's file UUID
  3. Exploit
    Craft chat-messages API request with unauthorized UUID
  4. Execution
    Submit request to API endpoint
  5. Persist
    Application skips ownership validation
  6. Impact
    Retrieve and exfiltrate file contents

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V8 - Authorization Object-level authorization, IDOR prevention
Exploitation Conditions

Exploitation requires the attacker to (1) possess valid, authenticated credentials for at least one user account within the target Dify tenant workspace (authentication cannot be bypassed, only authorization can); (2) know or be able to enumerate file UUIDs belonging to other users within the same workspace; (3) the target files must be referenced in or compatible with chat-messages workflow processing (files not integrated into chat processing may not be accessible via this vector). The vulnerability does NOT require special configuration - it affects default Dify installations. Non-default mitigations include: (a) disabling file uploads or multi-user workflows (extreme, not practical); (b) enforcing single-user workspaces (negates product utility). The primary limiting factor is the PR:L (authenticated) requirement, meaning the attacker cannot exploit this remotely without first compromising or obtaining a valid user credential. File UUID enumeration may be blocked by an administrator via API rate-limiting or access controls, which could slow but not prevent exploitation if UUIDs are predictable or discoverable through other means.

Impact

This vulnerability presents moderate-to-high real-world risk despite the CVSS 6.0 base score. CVSS vector analysis: AV:N (network-exploitable), AC:L (low complexity), PR:L (requires authentication), VC:H (high confidentiality impact) - indicating that while an attacker must first gain or possess valid workspace credentials, the exploitation barrier is low and the data exposure is severe. EPSS and KEV status are not provided in the input data, preventing direct exploitation probability assessment; however, the presence of publicly available exploit code significantly lowers the practical barrier to exploitation. The PR:L requirement limits scope to insider threats (compromised/rogue users, shared accounts, or developers with workspace access) but does not eliminate risk in organizational environments with high user churn, shared accounts, or weak access revocation practices. The AT:P (Attacker Time) and SC:N (Scope unchanged) modifiers suggest this is a targeted information disclosure, not a denial-of-service or privilege escalation. Risk is elevated in deployments where sensitive documents (contracts, health records, financial data, AI training data) are stored and shared within multi-user workspaces. Organizations with strict data segmentation requirements or regulatory obligations (HIPAA, GDPR) should treat this as high priority. The absence of CVSS scope change (SC:N) and SSVC data means defenders must apply business context: in healthcare or financial services, this is critical; in public collaboration platforms, it remains moderate. No conflicting signals detected between vector and description.

Exploit ScenarioDerived

A rogue employee with valid workspace credentials authenticates to Dify and intercepts or infers file UUIDs belonging to colleagues through UI inspection or error messages. The attacker crafts a chat-messages API request with those UUIDs in the files array parameter, sending the request to the platform. The application processes the request without verifying ownership, allowing the attacker to read and exfiltrate sensitive files (contracts, customer data, model training datasets) uploaded by other users. Publicly available exploit code on Huntr demonstrates this attack path.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – May 05, 2026

Dify before version 1.14.0 allows authenticated users to bypass authorization controls and read arbitrary files uploaded by other users within the same tenant by supplying unauthorized file UUIDs in chat-messages API requests. The vulnerability exploits insufficient permission verification on file access endpoints, enabling attackers to circumvent workspace separation and signed URL protections to retrieve sensitive file contents processed through workflows. Publicly available exploit code exists, and a vendor-released patch (version 1.14.0) is available.

RemediationAI

Upgrade to Dify version 1.14.0 or later immediately. The vendor has released a patched version available at https://github.com/langgenius/dify/releases/tag/1.14.0. For deployments unable to upgrade immediately, apply compensating controls: (1) Restrict chat-messages API endpoint access to a firewall rule permitting only trusted application servers or VPNs, reducing exposure to random attackers (trade-off: limits external integrations); (2) Implement strict file UUID logging and audit alerts on the chat-messages endpoint to detect anomalous UUID references not matching the authenticated user's file inventory (trade-off: requires operational monitoring overhead); (3) Enforce workspace-level file access policies at the application level by disabling file sharing across users until patched (trade-off: reduces collaboration features). Do not rely on signed URLs or workspace separation alone, as those are bypassed by this vulnerability. Review audit logs for unauthorized file access patterns using the exploit reference at https://huntr.com/bounties/181136ec-d957-4b75-8ea7-6fa7b8abd01d to understand attack signatures.

Affected VersionsENISA

dify 0 <1.14.0

Affected Packages

euvd dify fix: 1.14.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Dify is an AI application development platform that manages file uploads and user collaboration within multi-tenant workspaces. The vulnerability resides in the chat-messages endpoints responsible for processing file references during workflow execution. The affected code fails to validate that the authenticated user owns or has explicit permission to access files identified by UUID before passing them to workflow processors. CWE-639 (Authorization Bypass Through User-Controlled Key) describes the root cause: the application accepts user-supplied file UUIDs as authorization credentials without verifying the requester's relationship to those resources. Attackers exploit this by crafting requests that reference file UUIDs belonging to other workspace members, leveraging the fact that Dify's internal processing mechanisms (workflow processors, file handlers) trust the UUID provided without re-validating ownership. The vulnerability affects the file access control layer across all tenant isolation boundaries within a single workspace.

Know when Dify gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (VulnCheck) PRIMARY 6.0 MEDIUM
CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (VulnCheck) · only source for this CVE.

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
None
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

1
CVSS changed
May 05, 2026 - 21:22 NVD
6.5 (MEDIUM) 6.0 (MEDIUM)

DescriptionCVE.org

Dify before version 1.14.0 contains an authorization bypass vulnerability that allows authenticated users to read the full contents of files uploaded by other users within the same tenant by supplying an arbitrary file UUID in the files array of a chat-messages request. Attackers can exploit insufficient permission verification in the chat-messages endpoints to access files without ownership validation, bypassing workspace separation and signed URL protections to retrieve sensitive file contents through workflow processing.

Threat Intelligence Overview

EPSS Score
0.0%
Top 93% exploitable
Exploit
POC
Public exploit code exists
Data Quality
8 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment CIRCL GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC Yes
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

50
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +30
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

More in Dify

View all
CVE-2025-63387 HIGH POC
7.5 Dec 18

Dify 1.9.1 permits unauthenticated remote GET requests to the /console/api/system-features console endpoint, letting ano

CVE-2025-56157 CRITICAL POC
9.8 Dec 18

Hard-coded default PostgreSQL credentials shipped in the docker-compose.yaml of langgenius Dify through version 1.5.1 al

CVE-2026-41948 CRITICAL POC
9.3 May 18

Path traversal in Dify versions 0 through 1.14.1 allows authenticated tenants to escape their authorized tenant path and

CVE-2026-41947 CRITICAL POC
9.3 May 18

Cross-tenant authorization bypass in LangGenius Dify versions through 1.14.1 lets any logged-in editor reroute another t

CVE-2025-1796 HIGH POC
8.8 Mar 20

A vulnerability in langgenius/dify v0.10.1 allows an attacker to take over any account, including administrator accounts

CVE-2026-61461 HIGH POC
8.7 Jul 10

SQL injection in Dify's MyScale vector store backend (versions before 1.16.0-rc1) lets authenticated attackers execute a

CVE-2025-67732 HIGH POC
8.4 Jan 05

Plaintext exposure of third-party service API keys in Dify prior to version 1.11.0 allows any authenticated non-administ

CVE-2026-41949 HIGH POC
8.2 May 18

Cross-tenant document disclosure in Dify 1.14.1 and prior allows any authenticated user to read up to 3,000 characters o

CVE-2024-12039 HIGH POC
8.1 Mar 20

langgenius/dify version v0.10.1 contains a vulnerability where there are no limits applied to the number of code guess a

CVE-2024-12776 HIGH POC
8.1 Mar 20

In langgenius/dify v0.10.1, the `/forgot-password/resets` endpoint does not verify the password reset code, allowing an

CVE-2025-43862 HIGH POC
7.6 Apr 25

Dify is an open-source LLM app development platform. Rated high severity (CVSS 7.6), this vulnerability is remotely expl

CVE-2024-11824 HIGH POC
7.6 Mar 20

A stored cross-site scripting (XSS) vulnerability exists in langgenius/dify version latest, specifically in the chat log

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy