CVE-2026-59806

Gradio < 6.20.0 - Open Redirect and SSRF via /gradio_api/file= endpoint

State
Published
Severity
4.9 Medium
Published
Jul 8, 2026
Updated
Oct 8, 2026
Reserved
Jul 7, 2026

Read the record on cve.org

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.

Scores

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

Weaknesses

  • CWE-601 URL Redirection to Untrusted Site ('Open Redirect')
  • CWE-918 Server-Side Request Forgery (SSRF)

Affected Products

ProductVersions
gradiogradio-app
  • before 6.20.0Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.