CVE-2024-2206
MEDIUM 6.5CVSS 3.1gradio Server-Side Request Forgery vulnerability
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.
- Published
- 27 Mar 2024
- Last modified
- 10 Sep 2026
- Assigned by
- security@huntr.dev
- NVD status
- Analyzed
- Weakness
- CWE-918
- Also known as
- GHSA-r364-m2j9-mf4hPYSEC-2026-1420
- Sources
- NVDJSONOSV GHSA-r364-m2j9-mf4hJSONOSV PYSEC-2026-1420JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N |
| NVD | security@huntr.dev (Secondary) | CVSS 3.0 | HIGH 7.3 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L |
| OSV | GitHub | CVSS 3.0 | HIGH 7.3 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L |
| OSV | PyPA | CVSS 3.0 | HIGH 7.3 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | gradio_project | gradiocpe:2.3:a:gradio_project:gradio:*:*:*:*:*:python:*:* |
>= 3.47.1, < 4.18.0 | 4.18.0 |
| OSV | PyPI | gradio | < 4.18.0 | 4.18.0 |
References
- https://github.com/gradio-app/gradio/commit/49d9c48537aa706bf72628e3640389470138bdc6 · Patch, WEB
- https://huntr.com/bounties/2286c1ed-b889-45d6-adda-7014ea06d98e · Exploit, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2024-2206 · ADVISORY
- https://github.com/gradio-app/gradio · PACKAGE
- https://pypi.org/project/gradio · PACKAGE
- https://github.com/advisories/GHSA-r364-m2j9-mf4h · ADVISORY
History
- 25 Nov 2026 20:55 UTC · NVD: first stored (published 27 Mar 2024)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 7 Jul 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 27 Mar 2024)