Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. gradio
  4. ›
  5. CVE-2024-47872

CVE-2024-47872: Gradio has an XSS on every Gradio server via upload of HTML files, JS files, or SVG files

October 10, 2024 (updated January 21, 2025)

What kind of vulnerability is it? Who is impacted?

This vulnerability involves Cross-Site Scripting (XSS) on any Gradio server that allows file uploads. Authenticated users can upload files such as HTML, JavaScript, or SVG files containing malicious scripts. When other users download or view these files, the scripts will execute in their browser, allowing attackers to perform unauthorized actions or steal sensitive information from their sessions. This impacts any Gradio server that allows file uploads, particularly those using components that process or display user-uploaded files.

References

  • github.com/advisories/GHSA-gvv6-33j7-884g
  • github.com/gradio-app/gradio
  • github.com/gradio-app/gradio/security/advisories/GHSA-gvv6-33j7-884g
  • github.com/pypa/advisory-database/tree/main/vulns/gradio/PYSEC-2024-220.yaml
  • nvd.nist.gov/vuln/detail/CVE-2024-47872

Code Behaviors & Features

Detect and mitigate CVE-2024-47872 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 5.0.0

Fixed versions

  • 5.0.0

Solution

Upgrade to version 5.0.0 or above.

Impact 5.4 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Source file

pypi/gradio/CVE-2024-47872.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:55 +0000.