CVE-2026-28415: Gradio Open Redirect Vulnerability in OAuth Flow
Summary
CVE-2026-28415: Gradio has an Open Redirect in its OAuth Flow. Affects gradio versions < 6.6.0. Fixed in 6.6.0. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
Gradio is an open-source Python library that allows users to create user interfaces for machine learning models. It provides functionalities such as easy integration with various ML frameworks and deployment on platforms like Hugging Face Spaces. However, it has a vulnerability in its OAuth flow that can lead to open redirects, potentially exposing users to phishing attacks.
Vulnerability Detail
The vulnerability arises from the _redirect_to_target() function in Gradio's OAuth flow, which accepts an unvalidated _target_url query parameter. This allows attackers to redirect users to arbitrary external URLs after logout or login callback. For instance, an attacker could craft a URL like https://my-space.hf.space/logout?_target_url=https://evil.com/phishing, leading users to a malicious site. This vulnerability can be exploited for phishing attacks, as users may trust links originating from a legitimate domain.
How To Fix
Latest published version: 6.30.0 as of 22 Oct 2026
pip install --upgrade "gradio==6.30.0"
Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.
If you need the minimum change
6.6.0
This is the first release that contains the fix.
pip install --upgrade "gradio==6.6.0"
Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →
Workaround
As a temporary workaround, avoid using the OAuth flow in Gradio applications until the package is updated. Ensure that any links shared do not include the _target_url parameter.
Conclusion
The open redirect vulnerability in Gradio's OAuth flow poses a risk of phishing attacks. It is crucial for users to update to the patched version 6.6.0 or later to mitigate this risk. Monitoring tools like Vulert can assist in identifying such vulnerabilities in your applications.
See every vulnerability recorded for gradio →
FAQ
The vulnerability is an open redirect issue in Gradio's OAuth flow, allowing attackers to redirect users to malicious sites.
If your application uses Gradio with OAuth enabled and is running a version prior to 6.6.0, it is affected by this vulnerability.
The primary impact is phishing, where users may be redirected to malicious sites, potentially compromising their credentials.
Yes, you can use Vulert, which monitors and alerts for open-source vulnerabilities in your software using just the Pipfile.lock.
The CVSS score for this vulnerability is 4.3, indicating a moderate severity level.
References
Related vulnerabilities
Recent vulnerabilities recorded for gradio.