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 package | Versions | Reported by |
|---|---|---|
| gradio-app gradio-app/gradio | from unspecified before 4.18 | CVE List |
| gradio_project gradio | before 4.18, from 3.47.1 before 4.18.0 | CVE List, NVD |
| gradio (PyPI) | before 4.18.0 | GitHub Advisory Database, PyPA Advisory Database |
All scores
| @huntr_ai | 7.3high CVSS:3.0 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L |
| GitHub | 7.3high CVSS:3.0 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L |
| NVD | 6.5medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N |
| PyPA Advisory Database | 7.3high CVSS:3.0 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L |
Classification
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
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-2206 changed 2024-08-01 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-r364-m2j9-mf4h changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2024-2206 changed 2026-06-17 | Public domain |
| PyPA Advisory Database | PYSEC-2026-1420 changed 2026-07-07 | CC-BY-4.0 |