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

Medium 4.9 Published Updated

Attackers can exploit unvalidated URLs in Gradio to perform SSRF and retrieve sensitive cloud credentials or redirect users.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
None listed

What is CVE-2026-59806?

CVE-2026-59806 is a medium-severity server-side request forgery vulnerability in gradio-app gradio, published on 8 Jul 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official 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.

Weakness: CWE-918, CWE-601

Which versions are affected by CVE-2026-59806?

How do I fix CVE-2026-59806?

No fix has been published for CVE-2026-59806 yet. Limit exposure of the affected software until one is available.

Upgrade, and send outbound requests through an allow-list that blocks internal addresses. More about Server-side request forgery.

Is CVE-2026-59806 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-59806 exists.

Sources

Also known as GHSA-rj25-5m4j-hcxq.

Is CVE-2026-59806 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free