CVE-2024-2206
JSON

7.3high

SSRF Vulnerability in gradio-app/gradio

Severity
7.3high CVSS:3.0 by @huntr_ai
Exploit likelihood
0.42% (higher than 38% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
@huntr_ai
Also known as
GHSA-r364-m2j9-mf4hPYSEC-2026-1420

Description

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

Product or packageVersionsReported by
gradio-app gradio-app/gradiofrom unspecified before 4.18CVE List
gradio_project gradiobefore 4.18, from 3.47.1 before 4.18.0CVE List, NVD
gradio (PyPI)before 4.18.0GitHub Advisory Database, PyPA Advisory Database

All scores

@huntr_ai7.3high CVSS:3.0CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
GitHub7.3high CVSS:3.0CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
NVD6.5medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
PyPA Advisory Database7.3high CVSS:3.0CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L

Classification

CWE-918

SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial.

What each source says

CVE List

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.

NVD (es)

La ruta /proxy permite a un usuario enviar URL arbitrarias, incluidos posibles endpoints internos.

References

Sources

SourceRecordLicence
CVE ListCVE-2024-2206 changed 2024-08-01CVE Terms of Use
GitHub Advisory DatabaseGHSA-r364-m2j9-mf4h changed 2026-09-10CC-BY-4.0
NVDCVE-2024-2206 changed 2026-06-17Public domain
PyPA Advisory DatabasePYSEC-2026-1420 changed 2026-07-07CC-BY-4.0