What’s Vulnerable › Vulnerabilities

CVE-2026-59806: Gradio < 6.20.0 - Open Redirect and SSRF via /gradio_api/file= endpoint

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.

Affected products

How to fix

Upgrade to a fixed version: gradio-app gradio 6.20.0. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2026-59806 or the next vulnerability affects your stack