Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-28415

CVE-2026-28415: Gradio OAuth CSRF Vulnerability

CVE-2026-28415 is a CSRF flaw in Gradio's OAuth flow that allows unvalidated redirects to arbitrary URLs. This vulnerability affects apps with OAuth enabled. This post covers technical details, affected versions, and mitigations.

Published: March 6, 2026

CVE-2026-28415 Overview

CVE-2026-28415 is an Open Redirect vulnerability affecting Gradio, an open-source Python package designed for quick prototyping of machine learning applications. 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 vulnerability specifically affects the /logout and /login/callback endpoints on Gradio applications with OAuth enabled, including apps running on Hugging Face Spaces that utilize gr.LoginButton.

Critical Impact

Attackers can craft malicious URLs that redirect authenticated users to phishing sites or malicious domains, potentially leading to credential theft or session hijacking.

Affected Products

  • Gradio versions prior to 6.6.0
  • Gradio applications with OAuth enabled (including Hugging Face Spaces deployments)
  • Applications using gr.LoginButton functionality

Discovery Timeline

  • 2026-02-27 - CVE CVE-2026-28415 published to NVD
  • 2026-03-05 - Last updated in NVD database

Technical Details for CVE-2026-28415

Vulnerability Analysis

This vulnerability is classified under CWE-601 (URL Redirection to Untrusted Site) and CWE-200 (Information Exposure). The core issue lies in the _redirect_to_target() function within Gradio's OAuth authentication flow, which fails to properly validate the _target_url query parameter before performing redirects.

When users authenticate via OAuth on affected Gradio applications, the application processes the _target_url parameter to redirect users after login or logout operations. Without proper validation, an attacker can manipulate this parameter to redirect victims to external malicious websites.

The vulnerability requires user interaction—a victim must click on a crafted malicious link. However, because the initial URL appears to originate from a legitimate Gradio application domain, users are more likely to trust and click on such links.

Root Cause

The root cause is insufficient input validation in the _redirect_to_target() function. The function accepts the full URL including scheme and host components from the _target_url parameter without sanitization. This allows attackers to specify arbitrary external URLs as redirect destinations.

In version 6.6.0, the fix involves sanitizing the _target_url parameter to only use the path, query, and fragment components while stripping any scheme or host. This ensures redirects can only occur within the same application domain.

Attack Vector

The attack vector is network-based and targets the OAuth flow endpoints. An attacker constructs a malicious URL pointing to a vulnerable Gradio application's /logout or /login/callback endpoint with a crafted _target_url parameter containing an external malicious domain.

A typical attack scenario involves:

  1. Attacker identifies a Gradio application with OAuth enabled
  2. Attacker crafts a URL with a malicious _target_url parameter pointing to a phishing site
  3. Attacker distributes the malicious link via phishing emails or social engineering
  4. Victim clicks the link, authenticates normally, then gets redirected to the attacker's site
  5. Attacker's site can harvest credentials, session tokens, or serve malware

The malicious URL would target endpoints like /login/callback?_target_url=https://attacker-site.com/phishing where the _target_url parameter contains an attacker-controlled domain designed to mimic the legitimate application.

Detection Methods for CVE-2026-28415

Indicators of Compromise

  • Unusual redirect patterns in web server logs from /logout or /login/callback endpoints
  • HTTP requests to OAuth endpoints containing external domains in the _target_url parameter
  • User reports of unexpected redirects after authentication
  • Increased phishing reports targeting users of your Gradio application

Detection Strategies

  • Monitor HTTP request logs for OAuth callback endpoints with suspicious _target_url parameters
  • Implement web application firewall (WAF) rules to flag requests with external URLs in redirect parameters
  • Deploy SIEM correlation rules to detect redirect-based attack patterns
  • Review authentication flow logs for anomalous redirect destinations

Monitoring Recommendations

  • Enable detailed logging on all OAuth-related endpoints (/logout, /login/callback)
  • Set up alerts for redirect parameters containing external schemes (http://, https://) followed by non-application domains
  • Monitor user session patterns for authentication flows followed by immediate session termination
  • Track referrer headers from external domains that may indicate successful redirect attacks

How to Mitigate CVE-2026-28415

Immediate Actions Required

  • Upgrade Gradio to version 6.6.0 or later immediately
  • Review application logs for any evidence of exploitation attempts
  • Notify users about potential phishing attempts leveraging this vulnerability
  • Consider temporarily disabling OAuth authentication if immediate patching is not possible

Patch Information

The vulnerability is fixed in Gradio version 6.6.0. The patch sanitizes the _target_url parameter to only use the path, query, and fragment components, effectively stripping any scheme or host that could redirect users to external domains.

For detailed information about the security fix, refer to the GitHub Security Advisory.

Workarounds

  • Upgrade to Gradio 6.6.0 or later as the primary remediation
  • If immediate upgrade is not possible, implement reverse proxy rules to strip or validate _target_url parameters
  • Deploy WAF rules to block requests with external URLs in the _target_url parameter
  • Consider disabling OAuth features temporarily on critical applications until patching is complete
bash
# Upgrade Gradio to the patched version
pip install --upgrade gradio>=6.6.0

# Verify the installed version
pip show gradio | grep Version

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeCSRF

  • Vendor/TechGradio

  • SeverityMEDIUM

  • CVSS Score4.7

  • EPSS Probability0.03%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:L/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityLow
  • AvailabilityNone
  • CWE References
  • CWE-200

  • CWE-601
  • Vendor Resources
  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-27167: Gradio Information Disclosure Vulnerability

  • CVE-2026-28414: Gradio Path Traversal Vulnerability

  • CVE-2026-28416: Gradio SSRF Vulnerability in gr.load()

  • CVE-2025-23042: Gradio Auth Bypass Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English