Vulnerability · Published Feb 27, 2026 · Assigned by GitHub_M
CVE-2026-28415Gradio has Open Redirect in OAuth Flow
Medium 4.3
In plain English
A medium-severity information exposure in gradio from gradio-app. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 21% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| PyPI | gradio | 6.6.0 | GHSA-pfjf-5gxr-995x |
| PyPI | gradio | 6.6.0 | PYSEC-2026-65 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| gradio-app | gradio | < 6.6.0 |
Weakness: CWE-200, CWE-284, CWE-330, CWE-601 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N
References
- https://github.com/gradio-app/gradio/security/advisories/GHSA-pfjf-5gxr-995x x_refsource_CONFIRM