Skip to content
MediumVulnerability

CVE-2026-28415: Gradio OAuth open redirect via _target_url on /logout and /login/callback

Identifier
CVE-2026-28415
Published
Record updated
View JSON
Affected
  • gradio < 6.6.0
Fixed in
6.6.0
  • released February 17, 2026, 10 days before disclosure
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.3%

Summary

CVE-2026-28415 affects Gradio, an open-source Python package for prototyping, before 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 via the /logout and /login/callback endpoints on apps with OAuth enabled, such as apps running on Hugging Face Spaces with gr.LoginButton.

Mitigation

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.