Cross-Site Request Forgery (CSRF) Affecting gradio package, versions [,4.19.2)
Threat Intelligence
Do your applications use this vulnerable package?
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applications- Snyk ID SNYK-PYTHON-GRADIO-6476908
- published 22 Mar 2024
- disclosed 21 Mar 2024
- credit pinkdraconian
Introduced: 21 Mar 2024
CVE-2024-1727 Open this link in a new tabHow to fix?
Upgrade gradio
to version 4.19.2 or higher.
Overview
gradio is a Python library for easily interacting with trained machine learning models
Affected versions of this package are vulnerable to Cross-Site Request Forgery (CSRF) due to the flawed implementation of CORS rules that require the host
header to be localhost (or one of its aliases) and, if present, the origin
header to be localhost (or one of its aliases) as well. An attacker can exploit this by crafting requests that bypass these restrictions.
Note:
This vulnerability has a low impact on the availability of the target system. Sustained attacks may cause the system to not have enough disk space left to operate properly.