Cross-site scripting in Gradio - CVE-2024-47872

 

Cross-site scripting in Gradio - CVE-2024-47872

Published: October 10, 2024 / Updated: April 28, 2026


Vulnerability identifier: #VU128286
CSH Severity: Low
CVSS v4: 5.1 [CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N]
CVE-ID: CVE-2024-47872
CWE-ID: CWE-79
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote user to execute arbitrary script in a victim's browser.

The vulnerability exists due to cross-site scripting in file upload handling and display of uploaded files when processing uploaded HTML, JavaScript, or SVG files. A remote user can upload a crafted file to execute arbitrary script in a victim's browser.

User interaction is required when another user downloads or views the uploaded file.


Affected software

Gradio

How to mitigate CVE-2024-47872

Install security update from vendor's website.

Gradio - update to 5.0.0

External References

Related Security Bulletins