CVE-2026-28415
MEDIUM 4.7CVSS 3.1Gradio has an Open Redirect in its OAuth Flow
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.
- Published
- 27 Feb 2026
- Last modified
- 17 Jun 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-200CWE-284CWE-330CWE-601
- Also known as
- GHSA-pfjf-5gxr-995xPYSEC-2026-65
- Sources
- NVDJSONOSV GHSA-pfjf-5gxr-995xJSONOSV PYSEC-2026-65JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 4.7 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:L/A:N |
| OSV | PyPA | CVSS 3.1 | MEDIUM 4.7 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:L/A:N |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 4.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 4.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | gradio_project | gradiocpe:2.3:a:gradio_project:gradio:*:*:*:*:*:python:*:* |
< 6.6.0 | 6.6.0 |
| OSV | PyPI | gradio | < 6.6.0 | 6.6.0 |
References
- https://github.com/gradio-app/gradio/security/advisories/GHSA-pfjf-5gxr-995x · Vendor Advisory, WEB, ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2026-28415 · ADVISORY
- https://github.com/gradio-app/gradio/commit/dfee0da06d0aa94b3c2684131e7898d5d5c1911e · WEB
- https://github.com/gradio-app/gradio · PACKAGE
- https://github.com/gradio-app/gradio/releases/tag/gradio%406.6.0 · WEB
- https://github.com/pypa/advisory-database/tree/main/vulns/gradio/PYSEC-2026-65.yaml · WEB
History
- 25 Nov 2026 21:01 UTC · NVD: first stored (published 27 Feb 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 27 Feb 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 1 Mar 2026)