Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft OAuth URL with malicious redirect_url
-
DeliveryDeliver link via phishing to Dify user
-
ExploitUser authenticates against legitimate Dify instance
-
ExecutionOAuth flow redirects user to attacker-controlled site
-
ImpactAttacker captures OAuth token or authorization code from redirect URI
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V3 - Web Frontend Security Redirect URL validation
MITRE ATT&CK
1 technique across 1 tactic: Initial Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | The target user must click a crafted OAuth link and complete the Dify authentication flow - passive exploitation without user interaction is not possible given UI:R in the CVSS vector. The vulnerability is triggered specifically within the OAuth flow handled by the AppInitializer component, meaning OAuth login must be enabled and in use on the Dify deployment. No attacker authentication is required (PR:N). Exploitation is limited by: (1) mandatory user interaction - the victim must actively follow the malicious link and authenticate; (2) OAuth must be configured and accessible on the target instance; (3) impact is bounded to information disclosure (token/credential leakage) rather than direct code execution or system compromise. |
| Impact | The CVSS 3.0 score of 5.4 (Medium) reflects a realistic assessment: network-accessible (AV:N), low complexity (AC:L), no attacker authentication required (PR:N), but mandatory user interaction (UI:R), with limited confidentiality and integrity impact (C:L/I:L) and no availability impact (A:N). No EPSS data was provided, and no KEV listing exists, so automated widespread exploitation is not confirmed. The primary real-world risk is targeted phishing: an attacker embeds the crafted OAuth URL in a spear-phishing email, the user authenticates against the legitimate Dify instance, and is then redirected to a malicious site. This threat model is particularly relevant for Dify deployments with third-party OAuth providers (e.g., Google, GitHub) where token leakage could grant broader access. The CPE wildcard ('*' for all versions) suggests no safe version exists yet, but the absence of a KEV entry and the UI:R requirement meaningfully constrain opportunistic mass exploitation. |
| Exploit ScenarioDerived | An attacker crafts a Dify OAuth authorization URL substituting the redirect_url parameter with a domain they control (e.g., https://attacker.com/capture). The attacker delivers this URL via phishing email or malicious web page to a Dify user. The user clicks the link, authenticates normally against the Dify instance, and is transparently redirected to the attacker's server - which logs the OAuth authorization code or access token appended to the redirect URL, enabling the attacker to impersonate the victim within the application. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 29, 2026
Open redirect in Dify's OAuth flow enables remote attackers to hijack post-authentication redirections, sending users to attacker-controlled sites that can harvest OAuth tokens or credentials. The flaw resides in the AppInitializer component's oauth_redirect_url handling, where the redirect destination is not validated against an allowlist. Exploitation requires user interaction - a target must follow a crafted link - but no authentication is required of the attacker, making phishing-based delivery straightforward. No public exploit code or active exploitation (CISA KEV) has been identified at time of analysis.
RemediationAI
No specific patched version has been confirmed from available data - consult the ZDI advisory at https://www.zerodayinitiative.com/advisories/ZDI-26-452/ and the langgenius Dify GitHub repository for an official fix. As an immediate compensating control, administrators should configure a strict redirect_url allowlist in the OAuth provider settings, restricting accepted redirect URIs to only the exact registered Dify instance URL - this prevents arbitrary external destinations from being accepted. Additionally, deploying a WAF rule or reverse-proxy filter that rejects OAuth callback requests whose redirect_url parameter points to external domains provides a network-layer mitigation; note this may break legitimate OAuth flows if misconfigured. Until a vendor patch is confirmed, disabling third-party OAuth login entirely (if operationally feasible) eliminates the attack surface at the cost of forcing local authentication.
Affected VersionsENISA
Affected Packages
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
CWE-601 (URL Redirection to Untrusted Site / Open Redirect) describes the root cause: the application accepts a caller-controlled redirect_url parameter in its OAuth flow and forwards the user there after authentication without validating the destination against a trusted allowlist or origin check. The vulnerable component is the AppInitializer in Dify - an open-source LLM application development platform by langgenius (cpe:2.3:a:langgenius:dify:*:*:*:*:*:*:*:*, covering all versions). Because the flaw is in the OAuth handoff path, an attacker can supply a redirect_url pointing to an external domain, and after the user authenticates, the platform will silently redirect them off-site - potentially exposing OAuth authorization codes or tokens embedded in the redirect URI to the attacker's server logs.
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
AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
Network-delivered via crafted URL (AV:N), no special conditions (AC:L), no attacker auth needed (PR:N), user must click link (UI:R); impact limited to token disclosure and misdirection with no availability consequence.
Primary rating from Vendor (zdi).
CVSS VectorVendor: zdi
DescriptionCVE.org
Dify AI Workflow oauth_redirect_url Open Redirect Vulnerability. This vulnerability allows remote attackers to disclose sensitive information on affected installations of Dify. User interaction is required to exploit this vulnerability in that the target must visit a malicious page or open a malicious file.
The specific flaw exists within the OAuth flow handling in the AppInitializer component. An attacker can force a redirection to a site that serves malicious content. An attacker can leverage this vulnerability to disclose information in the context of the application. Was ZDI-CAN-29196.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Dify 1.9.1 permits unauthenticated remote GET requests to the /console/api/system-features console endpoint, letting ano
Hard-coded default PostgreSQL credentials shipped in the docker-compose.yaml of langgenius Dify through version 1.5.1 al
Path traversal in Dify versions 0 through 1.14.1 allows authenticated tenants to escape their authorized tenant path and
Cross-tenant authorization bypass in LangGenius Dify versions through 1.14.1 lets any logged-in editor reroute another t
A vulnerability in langgenius/dify v0.10.1 allows an attacker to take over any account, including administrator accounts
SQL injection in Dify's MyScale vector store backend (versions before 1.16.0-rc1) lets authenticated attackers execute a
Plaintext exposure of third-party service API keys in Dify prior to version 1.11.0 allows any authenticated non-administ
Cross-tenant document disclosure in Dify 1.14.1 and prior allows any authenticated user to read up to 3,000 characters o
langgenius/dify version v0.10.1 contains a vulnerability where there are no limits applied to the number of code guess a
In langgenius/dify v0.10.1, the `/forgot-password/resets` endpoint does not verify the password reset code, allowing an
Dify is an open-source LLM app development platform. Rated high severity (CVSS 7.6), this vulnerability is remotely expl
A stored cross-site scripting (XSS) vulnerability exists in langgenius/dify version latest, specifically in the chat log
EUVD-2026-50488
GHSA-hvq6-f5p6-23f6
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB