Dify Authorization Bypass Vulnerability Allowing Cross-User File Access

Vulnerability

An authorization bypass vulnerability exists in Dify versions prior to 1.14.0, allowing authenticated users to access files uploaded by others within the same tenant. This is achieved by inserting a file UUID into the files array of a chat-messages request, exploiting inadequate permission checks on the chat-messages endpoint. The vulnerability bypasses workspace separation and signed URL protections, enabling unauthorized access to sensitive file contents through workflow processing.

Impact

Exploitation of this vulnerability allows for unauthorized access to files uploaded by other users within the same tenant, bypassing established permission checks and workspace separations. This could lead to exposure of sensitive information contained in those files.

Reproduction

To reproduce this vulnerability, first upload a file using the Dify console or web application. After uploading, copy the UUID of the file from the response. Then, log in as a different user within the same tenant and send a message through the chat-messages endpoint, including the copied UUID in the files array. The message can be crafted to request a repetition of the file's contents, thereby accessing the unauthorized file data.

Remediation

Users can update to Dify version 1.14.0 or later, where this vulnerability has been addressed.

Added: May 5, 2026, 9:19 PM
Updated: May 5, 2026, 9:19 PM

Vulnerability Rating

Custom Algorithm
spread
0.0
impact
1.3
exploitability
4.2
remediation
7.7
relevance
7.5
threat
6.4
urgency
2.9
incentive
0.0

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.