CVE-2026-28415 Details
Description
Gradio is an open-source Python package designed for quick prototyping. Prior to version 6.6.0, the _redirect_to_target() function in Gradio's OAuth flow accepts an unvalidated _target_url query parameter, allowing redirection to arbitrary external URLs. This affects the /logout and /login/callback endpoints on Gradio apps with OAuth enabled (i.e. apps running on Hugging Face Spaces with gr.LoginButton). Starting in version 6.6.0, the _target_url parameter is sanitized to only use the path, query, and fragment, stripping any scheme or host.
A moderate open redirect vulnerability has been identified in Gradio, an open-source Python package for quick prototyping, prior to version 6.6.0. The issue arises in the '_redirect_to_target()' function within Gradio's OAuth flow, where an unvalidated '_target_url' query parameter is accepted. This flaw allows redirection to arbitrary external URLs and impacts the '/logout' and '/login/callback' endpoints on Gradio apps with OAuth enabled, such as those running on Hugging Face Spaces with the 'gr.LoginButton' component. An attacker could exploit this by crafting a URL that redirects users to a malicious site after logout, taking advantage of the trust associated with the 'hf.space' domain.
Users can update to Gradio version 6.6.0 or later, where the '_target_url' parameter is sanitized to remove any scheme or host, allowing only the path, query, and fragment.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Mar 2, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/gradio-app/gradio/security/advisories/GHSA-pfjf-5gxr-995x | [email protected] | Vendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-601 | URL Redirection to Untrusted Site ('Open Redirect') | [email protected] |
| CWE-200 | Exposure of Sensitive Information to an Unauthorized Actor | [email protected] |
| CWE-284 | Improper Access Control | [email protected] |
| CWE-330 | Use of Insufficiently Random Values | [email protected] |
| CWE-601 | URL Redirection to Untrusted Site ('Open Redirect') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| gradio project gradio | < 6.6.0 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Mar 5, 2026 | Initial Analysis | [email protected] |
| Feb 27, 2026 | New CVE Received | [email protected] |