In gradio <=4.42.0, the gr.DownloadButton function has a hidden server-side request forgery (SSRF) vulnerability. The reason is that within the saveurlto_cache function, there are no restrictions on the URL, which allows access to local target resources. This can lead to the download of local resources and sensitive information.
{ "github_reviewed": true, "github_reviewed_at": "2024-11-07T15:05:10Z", "nvd_published_at": "2024-11-04T23:15:04Z", "cwe_ids": [ "CWE-918" ], "severity": "MODERATE" }