CVE-2026-59806: Gradio < 6.20.0 - Open Redirect and SSRF via /gradio_api/file= endpoint
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 filefetch() function in the /gradioapi/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.
Affected Software
Event History
Frequently Asked Questions
What is the severity of CVE-2026-59806?
CVE-2026-59806 has a medium severity score of 4.9.
How do I fix CVE-2026-59806?
To fix CVE-2026-59806, upgrade Gradio to version 6.20.0 or later.
What types of attacks does CVE-2026-59806 enable?
CVE-2026-59806 allows attackers to perform open redirects and server-side request forgery (SSRF) attacks.
Which endpoint is affected by CVE-2026-59806?
CVE-2026-59806 affects the /gradio_api/file= endpoint in Gradio.
What software is impacted by CVE-2026-59806?
CVE-2026-59806 impacts all versions of Gradio before 6.20.0.