4.9medium
Gradio < 6.20.0 - Open Redirect and SSRF via /gradio_api/file= endpoint
- Severity
- 4.9medium CVSS:4.0 by VulnCheck
- Exploit likelihood
- 0.25% (higher than 17% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- VulnCheck
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
| Product or package | Versions | Reported by |
|---|---|---|
| gradio-app gradio | before 6.20.0 | CVE List |
All scores
| VulnCheck | 4.9medium CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:L/VA:N/SC:H/SI:N/SA:N |
| VulnCheck | 7.4high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N |
Classification
What each source says
CVE List
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.
NVD (es)
Gradio anterior a la versión 6.20.0 contiene una vulnerabilidad de redirección abierta y de falsificación de petición del lado del servidor que permite a los atacantes redirigir a los usuarios a URL arbitrarias o realizar SSRF del lado del cliente al proporcionar URL HTTP/HTTPS no validadas a la función file_fetch() en el endpoint /gradio_api/file=. Los atacantes pueden elaborar una respuesta FileData maliciosa dirigida a endpoints internos, como servicios de metadatos en la nube, para recuperar credenciales sensibles, incluyendo credenciales de rol IAM de EC2.
References
| https://github.com/gradio-app/gradio/issues/13593 | exploit, issue-tracking, technical-description | |
| https://github.com/gradio-app/gradio/releases/tag/gradio%406.20.0 | release-notes | |
| https://github.com/gradio-app/gradio/pull/13596 | issue-tracking, patch | |
| https://github.com/gradio-app/gradio/commit/1c5c53842df9c2750552d85c19a92e7e732cff3f | patch | |
| https://www.vulncheck.com/advisories/gradio-open-redirect-and-ssrf-via-gradio-api-file-endpoint | third-party-advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-59806 changed 2026-11-08 | CVE Terms of Use |
| NVD | CVE-2026-59806 changed 2026-10-25 | Public domain |