---
id: CVE-2026-59806
title: >-
  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…
summary: >-
  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…
severity: high
cvss: 7.4
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N'
cwe:
  - CWE-601
  - CWE-918
vendor: gradio-app
product: gradio
affected:
  - gradio < 6.20.0
published: '2026-07-08'
updated: '2026-10-08'
sourceUpdated: '2026-10-08T16:17:24.447'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-59806'
references:
  - url: >-
      https://github.com/gradio-app/gradio/commit/1c5c53842df9c2750552d85c19a92e7e732cff3f
    label: disclosure@vulncheck.com
  - url: 'https://github.com/gradio-app/gradio/issues/13593'
    label: disclosure@vulncheck.com
  - url: 'https://github.com/gradio-app/gradio/pull/13596'
    label: disclosure@vulncheck.com
  - url: 'https://github.com/gradio-app/gradio/releases/tag/gradio%406.20.0'
    label: disclosure@vulncheck.com
  - url: >-
      https://www.vulncheck.com/advisories/gradio-open-redirect-and-ssrf-via-gradio-api-file-endpoint
    label: disclosure@vulncheck.com
tags:
  - nvd
  - cve.org
  - exploit-available
exploitAvailable: true
ssvc:
  exploitation: poc
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2026-07-09T18:18:10.196884Z'
epss: 0.00437
epssPercentile: 0.35973
ingestedAt: '2026-10-08T16:52:14.696Z'
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
