Skip to main content

Dify EUVDEUVD-2026-30774

| CVE-2026-41949 HIGH
Authorization Bypass Through User-Controlled Key (CWE-639)
2026-05-18 VulnCheck GHSA-jv3f-qwf9-wvq9
8.2
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

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

  1. Access
    Self-register account on Dify instance
  2. Delivery
    Obtain target file UUID via leakage or chaining
  3. Exploit
    Send GET to /console/api/files/{uuid}/preview
  4. Execution
    Bypass missing tenant check in FileService
  5. Persist
    Receive up to 3000 chars of cross-tenant document
  6. Impact
    Exfiltrate sensitive RAG content

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) hold a valid Dify account in any tenant on the target instance - trivially obtainable on Dify Cloud due to free open self-registration, and easy on any self-hosted Dify deployment that has not disabled signups - and (2) possess or guess the UUID of a target file uploaded by another tenant. UUIDs are 128-bit and not enumerable by brute force, so practical exploitation depends on UUID leakage through referrer headers, shared logs, screenshots, error messages, or chained vulnerabilities, which is the basis of the CVSS AC:H rating. Limiting factors: the endpoint truncates output at 3,000 characters per file, only previewable file types are returned, and the target deployment must be running Dify 1.14.1 or earlier with the /console/api/files/{file_id}/preview endpoint reachable from the attacker's network position.

Impact

CVSS 4.0 vector AV:N/AC:H/PR:N/UI:N/VC:H scores 8.2 (High) - network-reachable, no authentication required for the vector itself, high confidentiality impact, but high attack complexity. The AC:H rating is the key tension: it reflects the need to obtain valid file UUIDs, but the description and source code make clear no other obstacles exist once a UUID is known, and Dify Cloud's free self-registration effectively neutralizes the PR:N-vs-authenticated distinction. Publicly available exploit code (Huntr bounty disclosure) and VulnCheck reporting raise this above the average CWE-639 finding. No EPSS score or CISA KEV entry was provided in the input, so widespread mass-exploitation likelihood cannot be quantified, but the combination of trivial account creation on the SaaS offering, available PoC, and high-value targets (RAG document corpora often contain proprietary or PII data) makes this a real priority for any Dify deployment, especially self-hosted multi-tenant instances.

Exploit ScenarioDerived

An attacker self-registers a free account on a Dify Cloud or multi-tenant Dify instance, obtains a victim file UUID through observation, log leakage, brute force, or social engineering, and issues an authenticated GET to /console/api/files/{file_id}/preview. The server returns up to 3,000 characters of the targeted document regardless of tenant ownership, leaking proprietary RAG content, API keys, or PII. A public PoC accompanies the Huntr bounty disclosure, lowering the skill barrier substantially.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.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

AnalysisAIv2 – May 18, 2026

Cross-tenant document disclosure in Dify 1.14.1 and prior allows any authenticated user to read up to 3,000 characters of arbitrary uploaded files across all tenants and workspaces by submitting the file's UUID to the /console/api/files/{file_id}/preview endpoint. The flaw is amplified on Dify Cloud, where free self-registration makes account creation trivial, and publicly available exploit code exists via the Huntr disclosure. No CISA KEV listing has been recorded at time of analysis, but the combination of low-friction account access and a documented PoC raises practical exposure considerably.

Earlier versions of this analysis (1)
v1 May 18, 2026 - 15:01 CVSS 5.9

Authenticated file disclosure in Dify 1.14.1 and prior allows any registered user to read up to 3,000 characters from documents across all tenants and workspaces by directly accessing the /console/api/files/{file_id}/preview endpoint with only a file UUID. The vulnerability bypasses tenant and workspace isolation, enabling cross-tenant data exfiltration. Attack complexity is rated high (AC:H) but requires no privileges (PR:N), and Dify Cloud's free self-registration makes account creation trivial. Publicly available exploit code exists per Huntr bounty d50a0240-7951-4939-b989-9bded66c7682, and upstream patch is available via GitHub PR #35797.

RemediationAI

Upstream fix available via GitHub PR https://github.com/langgenius/dify/pull/35797, which adds tenant scoping to FileService.get_file_preview; upgrade to the first released Dify version that includes this PR (a released patched version greater than 1.14.1 is not independently confirmed from the provided data, so verify the release tag against the PR merge commit before deploying). As an interim compensating control on self-hosted deployments, restrict network access to the /console/api/files/{file_id}/preview endpoint at the reverse proxy or WAF layer to trusted operator IPs, accepting that this will break legitimate in-product file previews for end users. Operators of Dify Cloud-style multi-tenant instances should additionally disable open self-registration if business policy permits, since unauthenticated signup is what converts this from an authenticated-user issue into a near-anonymous one. Review application logs for prior GETs to /console/api/files/*/preview and correlate file_id values against the uploading tenant to detect possible historical abuse.

Affected VersionsENISA

dify 0 ≤1.14.1

Affected Packages

euvd dify no fix

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 open-source LLM application development platform (CPE cpe:2.3:a:langgenius:dify) that supports multi-tenant workspaces where users upload documents to power retrieval-augmented generation pipelines. The vulnerability is a classic CWE-639 (Authorization Bypass Through User-Controlled Key): the FilePreviewApi controller in api/controllers/console/files.py called FileService.get_file_preview(file_id) using only the file UUID, and the underlying SQLAlchemy query (select(UploadFile).where(UploadFile.id file_id)) never constrained results to the requesting account's tenant. The upstream patch in PR #35797 introduces current_account_with_tenant() in the controller and adds UploadFile.tenant_id tenant_id to the WHERE clause, enforcing the missing tenant scoping check.

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 8.2 HIGH
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

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

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
High
Attack Requirements
None
Privileges Required
None
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

3
Analysis Updated
May 18, 2026 - 15:30 vuln.today
v2 - CVSS changed
Severity Changed
May 18, 2026 - 15:22 NVD
MEDIUM HIGH
CVSS changed
May 18, 2026 - 15:22 NVD
5.9 (MEDIUM) 8.2 (HIGH)

DescriptionCVE.org

Dify version 1.14.1 and prior contain 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.

Executive ViewAI

Why It Matters

Dify versions 1.14.1 and prior contain a cross-tenant file disclosure vulnerability allowing any authenticated user to read uploaded documents across all tenants and workspaces. Publicly available exploit code exists, and the risk is amplified on Dify Cloud where account creation is unrestricted, enabling attackers to trivially access customer files at scale.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.0%
Top 91% 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 HIGH
CISA KEV No
Public POC Yes
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.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
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Partial

Priority Score

61
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +41
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-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

CVE-2024-11822 HIGH POC
7.5 Mar 20

langgenius/dify version 0.9.1 contains a Server-Side Request Forgery (SSRF) vulnerability. Rated high severity (CVSS 7.5

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