# CVE-2026-28415: Gradio has Open Redirect in OAuth Flow

- Severity: Medium 4.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.28%, higher than 22% of CVEs (2026-12-01)
- Published: 2026-02-27T21:44:51.956Z
- Modified: 2026-06-17T10:28:34.843Z
- Also known as: GHSA-pfjf-5gxr-995x, PYSEC-2026-65
- Weaknesses: CWE-200, CWE-284, CWE-330, CWE-601
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- gradio-app gradio: < 6.6.0
- gradio (PyPI): before 6.6.0
- gradio_project gradio: before 6.6.0

## Every score

- GitHub_M: CVSS:3.1 4.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N`
- GitHub: CVSS:3.1 4.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N`
- NVD: CVSS:3.1 4.7 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:L/A:N`
- PyPA Advisory Database: CVSS:3.1 4.7 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:L/A:N`

## References

- <https://github.com/gradio-app/gradio/security/advisories/GHSA-pfjf-5gxr-995x> (advisory, vendor-advisory, web)
- <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)

## Sources

- CVE List: [CVE-2026-28415](https://www.cve.org/CVERecord?id=CVE-2026-28415), CVE Terms of Use, modified 2026-03-02
- GitHub Advisory Database: [GHSA-pfjf-5gxr-995x](https://github.com/advisories/GHSA-pfjf-5gxr-995x), CC-BY-4.0, modified 2026-06-06
- NVD: [CVE-2026-28415](https://nvd.nist.gov/vuln/detail/CVE-2026-28415), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-65](https://osv.dev/vulnerability/PYSEC-2026-65), CC-BY-4.0, modified 2026-05-20

---

Page: https://cve.day/CVE-2026-28415 · Whole record: https://cve.day/CVE-2026-28415.json · Rebuilt by cve.day 2026-11-25T22:59:15.052Z
