AI and data stack advisories

Severe, 6 weeks1496Projects326

1496 severe, 6 weeks · 326 projects

GradioGHSA-r364-m2j9-mf4h

gradio Server-Side Request Forgery vulnerability

Gradio

CVE-2024-2206 · Published Mar 27, 2024 · updated Sep 10, 2026

High7.3
Fix: upgrade to 4.18.0 or later
GitHub advisory

An SSRF vulnerability exists in the gradio-app/gradio due to insufficient validation of user-supplied URLs in the /proxy route. Attackers can exploit this vulnerability by manipulating the self.replica_urls set through the X-Direct-Url header in requests to the / and /config routes, allowing the addition of arbitrary URLs for proxying. This flaw enables unauthorized proxying of requests and potential access to internal endpoints within the Hugging Face space. The issue arises from the application's inadequate checking of safe URLs in the build_proxy_request function.

Affected versions

PackageAffectedFixed in
gradio
PyPI
< 4.18.04.18.0
Details and references
CVSS 3.0
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
Severity from
GitHub (reviewed advisory)
Weakness
CWE-918
Also known as
CVE-2024-2206, PYSEC-2026-1420

More Gradio advisories

All Gradio