Auth bypass in Dify
CVE-2026-41949
Dify before version 1.14.2 contains an authorization bypass vulnerability in the file preview endpoint that allows any authenticated user to read up to 3,000 characters of any uploaded document across all tenants and workspaces using only the file's UUID. Attackers can access the /console/api/files/{file_id}/preview endpoint with an intercepted file UUID to extract sensitive content from documents without ownership or workspace permission verification. NOTE: Dify Cloud allows unauthenticated free self-registration, making account creation trivially accessible to any attacker.
Vulnerability class: IDOR (Insecure Direct Object Reference)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 5.9 (Medium). Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N.
EPSS exploit prediction
EPSS 0.004, 38.3th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Dify
- Langgenius Dify — versions 0
Weakness classification (CWE)
References
- huntr.com/bounties/d50a0240-7951-4939-b989-9bded66c7682 (Exploit, technical-description, Third Party Advisory, exploit)
- github.com/langgenius/dify/pull/35797 (issue-tracking, Patch, Mitigation, patch, Issue Tracking)
- www.vulncheck.com/advisories/dify-authorization-bypass-via-file-preview-endpoint (Third Party Advisory, third-party-advisory)
- dify 1.14.2 Release Notes (release-notes)
- github.com/langgenius/dify/commit/432a6412a3fdb30ce48003d699b90cc7d890df20 (patch)
- www.zafran.io/resources/difytap-zafran-discovers-how-attackers-can-silently-wir… (technical-description, exploit)