OAuth Redirection Vulnerability in Gradio by Gradio App
CVE-2026-28415
4.3MEDIUM
What is CVE-2026-28415?
Gradio, an open-source Python package used for rapid prototyping, contains a vulnerability prior to version 6.6.0 in its OAuth flow. The _redirect_to_target() function improperly handles the _target_url query parameter, which can be exploited for redirection to unauthorized external URLs via the /logout and /login/callback endpoints on apps utilizing OAuth, such as those on Hugging Face Spaces with gr.LoginButton. Version 6.6.0 addresses this issue by sanitizing the _target_url parameter to ensure it only includes the path, query, and fragment, removing any scheme or host components.
Affected Version(s)
gradio < 6.6.0
