Skip to content
Open redirect Advisory Beginner CVE-2026-18266

Dify AI Workflow oauth_redirect_url Open Redirect Vulnerability

The OAuth flow handling in Dify's AppInitializer component allowed an attacker to force a redirection to a site serving malicious content. An attacker could leverage this to disclose information in the context of the application, though user interaction is required.

David Fiser Follow

Originally disclosed on Zero Day Initiative

Medium 5.4 View original

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.

David Fiser & Alfredo Oliveira of TrendAI Research, on the Zero Day Initiative

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the oauth_redirect_url parameter in the OAuth flow was not validated against an allowlist, so arbitrary destinations were accepted.

Impact

An attacker could redirect a victim to a malicious site and potentially disclose information in the context of the application, but the target must visit a malicious page or open a malicious file.

What the attacker needed

Victim clicks a crafted link; user interaction required

The fix

The vendor issued an update that appears to address this vulnerability.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

An open redirect is a flaw where a website takes a link parameter and sends the visitor to whatever address is supplied, even one controlled by an attacker. Here the OAuth login flow in Dify accepted a redirect address and could send the user to a malicious site instead of the intended one. The victim has to click a crafted link for this to work.

What is Open redirect?

A trusted site forwards users to any address an attacker picks; rarely paid alone, often the missing link in a chain.

More from Zero Day Initiative

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Open redirect

The lesson behind this report.

A trusted site forwards users to any address an attacker picks; rarely paid alone, often the missing link in a chain.