Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAttacker injects malicious FileData URL
-
DeliveryVictim user visits Gradio app
-
ExploitBrowser follows unvalidated file_fetch() redirect
-
ExecutionBrowser requests cloud metadata endpoint
-
PersistIAM role credentials returned
-
ImpactCredentials 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
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
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.
Primary rating from Vendor (vulncheck).
CVSS VectorVendor: vulncheck
Lifecycle Timeline
1DescriptionCVE.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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Server-Side Request Forgery exploits applications that fetch remote resources based on user-supplied URLs.
More in Open Redirect
View allA malicious third-party can give a crafted "ssh://..." URL to an unsuspecting victim, and an attempt to visit the URL ca
GFI Kerio Control versions 9.2.5 through 9.4.5 contain an HTTP response splitting vulnerability in the dest parameter of
PHP through 7.0.8 does not attempt to address RFC 3875 section 4.1.18 namespace conflicts and therefore does not protect
Multiple open redirect vulnerabilities in Apache Struts 2.0.0 through 2.3.15 allow remote attackers to redirect users to
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
In Apache Airflow versions prior to 2.4.3, there was an open redirect in the webserver's `/login` endpoint. Rated medium
Open redirect vulnerability in age-verification.php in the Age Verification plugin 0.4 and earlier for WordPress allows
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
Vulnerability in the Oracle Applications Framework component of Oracle E-Business Suite (subcomponent: Popup windows (li
Unspecified vulnerability in the Oracle Application Server Single Sign-On component in Oracle Fusion Middleware 10.1.4.3
Flarum is open source discussion platform software. Rated medium severity (CVSS 6.5), this vulnerability is remotely exp
Open redirect vulnerability in Novius OS 5.0.1 (Elche) allows remote attackers to redirect users to arbitrary web sites
EUVD-2026-42376
GHSA-rj25-5m4j-hcxq
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB