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

CVE-2024-47165: Gradio's CORS origin validation accepts the null origin

October 10, 2024 (updated January 21, 2025)

What kind of vulnerability is it? Who is impacted?

This vulnerability relates to CORS origin validation accepting a null origin. When a Gradio server is deployed locally, the localhost_aliases variable includes “null” as a valid origin. This allows attackers to make unauthorized requests from sandboxed iframes or other sources with a null origin, potentially leading to data theft, such as user authentication tokens or uploaded files. This impacts users running Gradio locally, especially those using basic authentication.

References

  • github.com/advisories/GHSA-89v2-pqfv-c5r9
  • github.com/gradio-app/gradio
  • github.com/gradio-app/gradio/security/advisories/GHSA-89v2-pqfv-c5r9
  • github.com/pypa/advisory-database/tree/main/vulns/gradio/PYSEC-2024-214.yaml
  • nvd.nist.gov/vuln/detail/CVE-2024-47165

Code Behaviors & Features

Detect and mitigate CVE-2024-47165 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:N/UI:R/S:U/C:L/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-285: Improper Authorization
  • CWE-346: Origin Validation Error

Source file

pypi/gradio/CVE-2024-47165.yml

Spotted a mistake? Edit the file on GitLab.

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

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