Dify Authorization Bypass Vulnerability in File Preview Endpoint

Vulnerability

An authorization bypass vulnerability has been identified in Dify versions through 1.14.1. This vulnerability allows any authenticated user to access the first 3,000 characters of any uploaded document across all tenants and workspaces, using only the file's UUID. The issue arises in the file preview endpoint, where sensitive content can be extracted from documents without proper ownership or workspace permission verification. Dify Cloud's unauthenticated free self-registration further facilitates this exploitation.

Impact

Exploitation of this vulnerability allows for unauthorized access to sensitive document content, bypassing established permission checks and workspace separations. This could lead to cross-tenant and cross-workspace data exposure.

Reproduction

To reproduce this vulnerability, an authenticated user can intercept a file UUID from a regular file-preview link. Then, using the intercepted UUID, the user can access the '/console/api/files/{file_id}/preview' endpoint to extract the first 3,000 characters of the corresponding document. This can be automated with a provided Python script that handles the file upload and preview retrieval processes.

Remediation

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

Added: May 18, 2026, 3:22 PM
Updated: May 18, 2026, 3:22 PM

Vulnerability Rating

Custom Algorithm
spread
0.0
impact
1.3
exploitability
4.2
remediation
0.0
relevance
8.7
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.