Intel

AIKIDO-2026-425914

gradio is vulnerable to URL Redirection to Untrusted Site ('Open Redirect')

URL Redirection to Untrusted Site ('Open Redirect')GHSA-vwgg-rgg9-xx9q Published 4 days ago

43

Medium Risk

This Affects:

PYTHONgradio
6.6.0 - 6.15.2
Fixed in 6.16.0
Are you affected? Scan for Free

TL;DR

Gradio OAuth logout and login callback flows sanitize _target_url by taking only urlparse(...).path, but urlparse leaves four or more leading slashes in .path. An attacker can supply ////evil.com/foo so the response Location header becomes a scheme-relative URL that browsers resolve to an external host. This bypasses the CVE-2026-28415 fix shipped in 6.6.0 for apps using OAuth components such as gr.LoginButton. The fix collapses leading slashes and backslashes so redirects stay on the local path.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and your app enables OAuth (for example with gr.LoginButton on Hugging Face Spaces).

Background info

gradio is vulnerable to URL Redirection to Untrusted Site ('Open Redirect') in versions 6.6.0 - 6.15.2.

How to fix this

Upgrade the gradio library to the patch version.