CVE-2024-2206
mediumpriority · track · 26EPSS 0.004 · 36 %ileEUUSEPSS · scored 2026-10-27
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.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · medium–high · 6–7.3
ssvc
A stakeholder decision — act, attend, or track — from exploitation and impact.
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (4)
Products and version ranges known to be affected.
advisories (2)
Vendor and ecosystem advisories describing this.
- GHSA-r364-m2j9-mf4hgradio Server-Side Request Forgery vulnerability2024-03-27ghsa · osvUS
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.
- PYSEC-2026-1420gradio Server-Side Request Forgery vulnerability2026-07-07vendor · osvUS
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.
also known as (6)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (7)
External citations — patches, advisories, analysis.
- https://cxsecurity.com/cveshow/CVE-2024-2206/cnnvd
- https://github.com/gradio-app/gradio/commit/49d9c48537aa706bf72628e3640389470138bdc6cnnvd
- https://huntr.com/bounties/2286c1ed-b889-45d6-adda-7014ea06d98ecnnvd
- https://github.com/gradio-app/gradio/commit/49d9c48537aa706bf72628e3640389470138bdc6enisa_euvd
- https://huntr.com/bounties/2286c1ed-b889-45d6-adda-7014ea06d98eenisa_euvd
- https://github.com/gradio-app/gradio/commit/49d9c48537aa706bf72628e3640389470138bdc6Patchnvd
- https://huntr.com/bounties/2286c1ed-b889-45d6-adda-7014ea06d98eExploitThird Party Advisorynvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan