Description
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.
Published: 2026-07-08
Score: 4.9 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

Gradio releases prior to 6.20.0 contain a flaw that allows malicious actors to interpolate arbitrary HTTPS or HTTP URLs into the file_fetch() function invoked through the /gradio_api/file= endpoint. This weakness enables two distinct attacks: an open redirect that could lure users to phishing or malware sites and a client‑side SSRF that can target internal services. The unauthorized disclosure of sensitive data, credential compromise, or phishing is possible, thereby affecting confidentiality of internal resources and the integrity of user navigation.

Affected Systems

The vulnerability affects the Gradio application, specifically any deployment using a version earlier than 6.20.0. No specific platform constraints are listed beyond the Python implementation of Gradio, and the affected product is identified as gradio-app:gradio.

Risk and Exploitability

The CVSS score of 4.9 indicates a moderate risk. EPSS score of less than 1% indicates a very low exploitation probability as of the data snapshot, and the absence from CISA's KEV catalog suggests there is no publicly reported exploitation. The likely attack path involves sending a crafted HTTP request to the /gradio_api/file= endpoint with a malicious URL payload; the lack of server‑side validation permits the request to be forwarded to internal services or redirect users elsewhere. Based on the description, the vulnerability may remain exploitable if the API endpoint is reachable and the application is exposed to unauthenticated HTTP traffic.

Generated by OpenCVE AI on July 29, 2026 at 13:37 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply the latest Gradio release 6.20.0 or later to eliminate the open redirect and SSRF vulnerability.
  • Restrict access to the /gradio_api/file= endpoint via firewall or network ACLs so that only trusted internal networks can reach it.
  • Configure the application to validate or whitelist URLs passed to file_fetch, permitting only predefined safe schemes or domains.

Generated by OpenCVE AI on July 29, 2026 at 13:37 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Thu, 09 Jul 2026 19:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Wed, 08 Jul 2026 20:15:00 +0000

Type Values Removed Values Added
Description 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.
Title Gradio < 6.20.0 - Open Redirect and SSRF via /gradio_api/file= endpoint
First Time appeared Gradio Project
Gradio Project gradio
Weaknesses CWE-601
CWE-918
CPEs cpe:2.3:a:gradio_project:gradio:*:*:*:*:*:python:*:*
Vendors & Products Gradio Project
Gradio Project gradio
References
Metrics cvssV3_1

{'score': 7.4, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N'}

cvssV4_0

{'score': 4.9, 'vector': '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'}


Subscriptions

Gradio Project Gradio
cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-07-09T18:18:16.061Z

Reserved: 2026-07-07T14:39:14.062Z

Link: CVE-2026-59806

cve-icon Vulnrichment

Updated: 2026-07-09T18:18:13.036Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-07-29T13:45:02Z

Weaknesses
  • CWE-601

    URL Redirection to Untrusted Site ('Open Redirect')

  • CWE-918

    Server-Side Request Forgery (SSRF)