Skip to content
GradioGHSA-48cq-79qq-6f7x

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

GitHub advisory

Affected versions

PackageAffectedFixed in
gradio
PyPI
< 4.19.24.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

More Gradio advisories

All Gradio
DateAdvisory
Jun 42024A 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
May 52024Gradio's Component Server does not properly consider` _is_server_fn` for functions
CVE-2024-34511Medium6.5fixed in 4.13.0
May 52024Gradio allows credential leakage on Windows
CVE-2024-34510High7.5fixed in 4.20.0
Jun 62024Local file inclusion in gradio
CVE-2024-4941High7.5fixed in 4.31.3
Jun 62024Server-Side Request Forgery in gradio
CVE-2024-4325High8.6no fix yet
Jun 222024Open redirect in gradio
CVE-2024-4940Medium5.4no fix yet

Critical advisories by email

Wednesdays: the week’s critical and high advisories in the AI and data stack, with the fixed versions. Only in weeks that have some.

Double opt-in. Unsubscribe any time.