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.

Severity (CVSS 3.1)4.3Medium
Exploit odds (30 days)0.3%top 78.5% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

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

EcosystemPackageFixed inAdvisory
PyPIgradio6.6.0GHSA-pfjf-5gxr-995x
PyPIgradio6.6.0PYSEC-2026-65

Affected products (as reported)

VendorProductVersions
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