Gradio applications running locally vulnerable to 3rd party websites accessing routes and uploading files
Medium4.3CVE-2024-1727 · Published May 21, 2024 · updated Sep 10, 2026
Affected versions
| Package | Affected | Fixed in |
|---|---|---|
| gradio PyPI | < 4.19.2 | 4.19.2 |
Details and references
### Impact This CVE covers the ability of 3rd party websites to access routes and upload files to users running Gradio applications locally. For example, the malicious owners of [www.dontvisitme.com](http://www.dontvisitme.com/) could put a script on their website that uploads a large file to http://localhost:7860/upload and anyone who visits their website and has a Gradio app will now have that large file uploaded on their computer ### Patches Yes, the problem has been patched in Gradio version 4.19.2 or higher. We have no knowledge of this exploit being used against users of Gradio applications, but we encourage all users to upgrade to Gradio 4.19.2 or higher. Fixed in: https://github.com/gradio-app/gradio/commit/84802ee6a4806c25287344dce581f9548a99834a CVE: https://nvd.nist.gov/vuln/detail/CVE-2024-1727
- CVSS 3.1
- CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L
- Severity from
- GitHub (reviewed advisory)
- Weakness
- CWE-352
- Also known as
- CVE-2024-1727, PYSEC-2026-1409
- github.com/gradio-app/gradio/security/advisories/GHSA-48cq-79qq-6f7x
- nvd.nist.gov/vuln/detail/CVE-2024-1727
- github.com/gradio-app/gradio/pull/7503
- github.com/gradio-app/gradio/commit/84802ee6a4806c25287344dce581f9548a99834a
- github.com/gradio-app/gradio
- huntr.com/bounties/a94d55fb-0770-4cbe-9b20-97a978a2ffff
More Gradio advisories
All Gradio| Date | Advisory | Severity | Fixed in |
|---|---|---|---|
| Jun 42024 | A command injection vulnerability exists in the gradio-app/gradio repository, specifically within the 'test-functional.yml' workflow. The vulnerability arises due to improper neutralization of special elements used in a command, allowing for unauthorized modification of the base repository or secret CVE-2024-4253Critical9.1fixed in 4.29.0 | Critical9.1 | 4.29.0 |
| May 52024 | Gradio's Component Server does not properly consider` _is_server_fn` for functions CVE-2024-34511Medium6.5fixed in 4.13.0 | Medium6.5 | 4.13.0 |
| May 52024 | Gradio allows credential leakage on Windows CVE-2024-34510High7.5fixed in 4.20.0 | High7.5 | 4.20.0 |
| Jun 62024 | Local file inclusion in gradio CVE-2024-4941High7.5fixed in 4.31.3 | High7.5 | 4.31.3 |
| Jun 62024 | Server-Side Request Forgery in gradio CVE-2024-4325High8.6no fix yet | High8.6 | No fix yet |
| Jun 222024 | Open redirect in gradio CVE-2024-4940Medium5.4no fix yet | Medium5.4 | No fix yet |