CVE-2026-28415: Gradio Open Redirect Vulnerability in OAuth Flow

gradio Updated 04 Mar 2026

Summary

01/03/2026
Yes i
Moderate
4.3

CVE-2026-28415: Gradio has an Open Redirect in its OAuth Flow. Affects gradio versions < 6.6.0. Fixed in 6.6.0. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

Gradio is an open-source Python library that allows users to create user interfaces for machine learning models. It provides functionalities such as easy integration with various ML frameworks and deployment on platforms like Hugging Face Spaces. However, it has a vulnerability in its OAuth flow that can lead to open redirects, potentially exposing users to phishing attacks.

Vulnerability Detail

The vulnerability arises from the _redirect_to_target() function in Gradio's OAuth flow, which accepts an unvalidated _target_url query parameter. This allows attackers to redirect users to arbitrary external URLs after logout or login callback. For instance, an attacker could craft a URL like https://my-space.hf.space/logout?_target_url=https://evil.com/phishing, leading users to a malicious site. This vulnerability can be exploited for phishing attacks, as users may trust links originating from a legitimate domain.

How To Fix

Latest published version: 6.30.0 as of 22 Oct 2026

pip install --upgrade "gradio==6.30.0"

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

6.6.0

This is the first release that contains the fix.

pip install --upgrade "gradio==6.6.0"

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, avoid using the OAuth flow in Gradio applications until the package is updated. Ensure that any links shared do not include the _target_url parameter.

Conclusion

The open redirect vulnerability in Gradio's OAuth flow poses a risk of phishing attacks. It is crucial for users to update to the patched version 6.6.0 or later to mitigate this risk. Monitoring tools like Vulert can assist in identifying such vulnerabilities in your applications.

See every vulnerability recorded for gradio →

Share this vulnerability

FAQ

The vulnerability is an open redirect issue in Gradio's OAuth flow, allowing attackers to redirect users to malicious sites.

If your application uses Gradio with OAuth enabled and is running a version prior to 6.6.0, it is affected by this vulnerability.

The primary impact is phishing, where users may be redirected to malicious sites, potentially compromising their credentials.

Yes, you can use Vulert, which monitors and alerts for open-source vulnerabilities in your software using just the Pipfile.lock.

The CVSS score for this vulnerability is 4.3, indicating a moderate severity level.

Related vulnerabilities

Recent vulnerabilities recorded for gradio.

How To Fix

Latest published version: 6.30.0 as of 22 Oct 2026

pip install --upgrade "gradio==6.30.0"

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

6.6.0

This is the first release that contains the fix.

pip install --upgrade "gradio==6.6.0"

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback