Skip to main content

Gradio EUVDEUVD-2026-42376

| CVE-2026-59806 MEDIUM
URL Redirection to Untrusted Site (Open Redirect) (CWE-601)
2026-07-08 disclosure@vulncheck.com GHSA-rj25-5m4j-hcxq
4.9
CVSS 4.0 · Vendor: vulncheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Attacker injects malicious FileData URL
  2. Delivery
    Victim user visits Gradio app
  3. Exploit
    Browser follows unvalidated file_fetch() redirect
  4. Execution
    Browser requests cloud metadata endpoint
  5. Persist
    IAM role credentials returned
  6. Impact
    Credentials exfiltrated to attacker

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V3 - Web Frontend Security Redirect URL validation
MITRE ATT&CK

1 technique across 1 tactic: Initial Access

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires that the attacker can influence or inject a FileData object containing an attacker-controlled HTTP/HTTPS URL into the Gradio application's response flow - for example, by controlling a model output that returns a FileData structure, or by crafting a shareable Gradio app link. The passive user interaction requirement (UI:P in CVSS 4.0) means a victim user must visit or interact with the Gradio interface for the malicious URL to be fetched by their browser. The attack requirement (AT:P) reflects the need to insert the malicious FileData URL into the application flow. The IAM credential exfiltration impact is limited to victims whose browsers can reach link-local metadata endpoints, which is most relevant when the victim is accessing the Gradio app from a cloud VM or when the Gradio server itself processes the redirect server-side. No authentication to the Gradio application is required. Non-cloud or air-gapped deployments face only the open redirect risk, not the IAM credential exposure.

Impact

The CVSS 4.0 base score of 4.9 (Medium) reflects the balanced risk profile: low attack complexity and no privilege requirement are offset by the requirement for passive user interaction (UI:P) and an attack requirement (AT:P), likely the need to insert a malicious FileData URL into the application flow. The most severe real-world impact - SC:H for subsequent system confidentiality - applies specifically to cloud-hosted Gradio deployments where the visiting client's browser can reach link-local metadata endpoints, making this disproportionately dangerous in AWS/GCP/Azure environments compared to on-premise. No EPSS score was provided in the input; no CISA KEV listing exists, and no public POC has been identified, limiting exploitation to skilled, targeted actors at present. The gap between the moderate CVSS score and the potential severity of IAM credential theft is a meaningful signal: security teams running Gradio on cloud infrastructure should treat this as higher priority than the numeric score alone implies. No conflicting data is present in the provided sources.

Exploit ScenarioDerived

An attacker embeds a crafted FileData object with a url pointing to http://169.254.169.254/latest/meta-data/iam/security-credentials/ in a shared Gradio application link. When a legitimate user visits the app and the front end processes the FileData response, the user's browser is redirected to the metadata endpoint, returning temporary AWS IAM role credentials that the attacker can capture via a CORS-aware exfiltration technique or by observing the browser's network traffic. No public exploit code has been identified, but the attack requires only basic knowledge of the Gradio API and cloud metadata service structure.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jul 08, 2026

Open redirect and client-side SSRF in Gradio before 6.20.0 expose cloud infrastructure credentials to network attackers via the /gradio_api/file= endpoint. The file_fetch() function accepts unvalidated HTTP/HTTPS URLs from attacker-controlled FileData responses, enabling redirection of victim browsers to arbitrary destinations including cloud metadata services such as the EC2 instance metadata endpoint (169.254.169.254). Successful exploitation in cloud-hosted Gradio deployments allows retrieval of IAM role credentials, achieving high subsequent-system confidentiality impact. No public exploit or CISA KEV listing is identified at time of analysis; a fix is available in version 6.20.0.

RemediationAI

The primary fix is to upgrade Gradio to version 6.20.0 or later, which introduces validation of URLs supplied to file_fetch() to block unvalidated HTTP/HTTPS redirects. The patched release is confirmed at https://github.com/gradio-app/gradio/releases/tag/gradio%406.20.0. For deployments that cannot immediately upgrade, a concrete compensating control is to restrict network egress from client browsers to link-local ranges (169.254.0.0/16) at the WAF or network layer, preventing cloud metadata access - note this does not mitigate the open redirect path. Additionally, placing Gradio behind an authenticated reverse proxy (requiring login before reaching /gradio_api/file=) eliminates unauthenticated exploitation of the SSRF path, at the cost of restricting public demo access. Cloud deployments should audit IAM roles attached to instances running Gradio and apply least-privilege policies to limit the impact of any credential exposure.

Affected VersionsENISA

gradio 0 <6.20.0

Affected Packages

euvd gradio fix: 6.20.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Gradio is a Python framework widely used in the AI/ML ecosystem to build and share interactive ML model demos, predominantly deployed on cloud platforms (Hugging Face Spaces, AWS, GCP). The vulnerability (CWE-601: URL Redirection to Untrusted Site) resides in the file_fetch() function exposed at the /gradio_api/file= endpoint. When Gradio processes a FileData object whose url field is attacker-controlled, it forwards the unvalidated URL directly to the client browser without allowlist validation or scheme restriction. This permits two attack classes: (1) open redirect - victim browser is sent to an arbitrary external site, enabling phishing; (2) client-side SSRF - victim browser is directed to internal network resources such as the AWS EC2 instance metadata service (http://169.254.169.254/latest/meta-data/iam/security-credentials/), leaking temporary IAM role credentials. The CVSS 4.0 vector AV:N/AC:L/AT:P/PR:N/UI:P reflects network-reachable exploitation with passive user interaction and a specific attack requirement, while subsequent-system confidentiality (SC:H) captures the IAM credential exposure rather than the Gradio host itself.

Know when Open Redirect gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (vulncheck) PRIMARY 4.9 MEDIUM
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:L/VA:N/SC:H/SI:N/SA:N
vuln.today AI 8.2 HIGH

Network-reachable with no privileges; user interaction required (browser redirect); scope change to subsequent cloud system with high confidentiality loss via IAM credentials and low integrity via open redirect.

3.1 AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:N
4.0 AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:L/VA:N/SC:H/SI:N/SA:N

Primary rating from Vendor (vulncheck).

CVSS VectorVendor: vulncheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
Passive
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
Low
Vulnerable system: Availability
None
Subsequent system: Confidentiality
High
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

1
Patch available
Jul 08, 2026 - 21:04 EUVD

DescriptionCVE.org

Gradio before 6.20.0 contains an open redirect and server-side request forgery vulnerability that allows attackers to redirect users to arbitrary URLs or perform client-side SSRF by supplying unvalidated HTTP/HTTPS URLs to the file_fetch() function in the /gradio_api/file= endpoint. Attackers can craft a malicious FileData response targeting internal endpoints such as cloud metadata services to retrieve sensitive credentials including EC2 IAM role credentials.

Threat Intelligence Overview

EPSS Score
0.2%
Top 84% exploitable
Prevalence
High
dominant Python framework for AI/ML demos on Hugging Face and cloud
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact· derived
High
Technical Impact
Partial

Priority Score

24
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +24
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Server-Side Request Forgery exploits applications that fetch remote resources based on user-supplied URLs.

CVE-2017-1000117 HIGH POC
8.8 Oct 05

A malicious third-party can give a crafted "ssh://..." URL to an unsuspecting victim, and an attempt to visit the URL ca

CVE-2024-52875 HIGH POC
8.8 Jan 31

GFI Kerio Control versions 9.2.5 through 9.4.5 contain an HTTP response splitting vulnerability in the dest parameter of

CVE-2016-5385 HIGH POC
8.1 Jul 19

PHP through 7.0.8 does not attempt to address RFC 3875 section 4.1.18 namespace conflicts and therefore does not protect

CVE-2013-2248 MEDIUM POC
5.8 Jul 20

Multiple open redirect vulnerabilities in Apache Struts 2.0.0 through 2.3.15 allow remote attackers to redirect users to

CVE-2018-11784 MEDIUM POC
4.3 Oct 04

When the default servlet in Apache Tomcat versions 9.0.0.M1 to 9.0.11, 8.5.0 to 8.5.33 and 7.0.23 to 7.0.90 returned a r

CVE-2022-45402 MEDIUM
6.1 Nov 15

In Apache Airflow versions prior to 2.4.3, there was an open redirect in the webserver's `/login` endpoint. Rated medium

CVE-2012-6499 MEDIUM POC
5.8 Jan 12

Open redirect vulnerability in age-verification.php in the Age Verification plugin 0.4 and earlier for WordPress allows

CVE-2015-2863 MEDIUM POC
4.3 Jul 20

Open redirect vulnerability in Kaseya Virtual System Administrator (VSA) 7.x before 7.0.0.29, 8.x before 8.0.0.18, 9.0 b

CVE-2017-3528 MEDIUM POC
5.4 Apr 24

Vulnerability in the Oracle Applications Framework component of Oracle E-Business Suite (subcomponent: Popup windows (li

CVE-2012-0518 MEDIUM
4.7 Oct 16

Unspecified vulnerability in the Oracle Application Server Single Sign-On component in Oracle Fusion Middleware 10.1.4.3

CVE-2024-21641 MEDIUM POC
6.5 Jan 05

Flarum is open source discussion platform software. Rated medium severity (CVSS 6.5), this vulnerability is remotely exp

CVE-2015-5354 MEDIUM POC
5.8 Jul 01

Open redirect vulnerability in Novius OS 5.0.1 (Elche) allows remote attackers to redirect users to arbitrary web sites

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy