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.0: 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/E:U/U:Clear
CVE-ID: CVE-2024-47872
CWE-ID: CWE-79
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: Gradio
Affected software:
Gradio

Detailed vulnerability description

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.


How to mitigate CVE-2024-47872

Install security update from vendor's website.

Sources