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

CVE-2025-5320: Gradio CORS Origin Validation Bypass Vulnerability

May 29, 2025 (updated June 5, 2025)

A vulnerability classified as problematic has been found in gradio-app gradio up to 5.29.1. This affects the function is_valid_origin of the component CORS Handler. The manipulation of the argument localhost_aliases leads to origin validation error. It is possible to initiate the attack remotely. The complexity of an attack is rather high. The exploitability is told to be difficult. The exploit has been disclosed to the public and may be used. The vendor was contacted early about this disclosure but did not respond in any way.

References

  • gist.github.com/superboy-zjc/aa3dfa161d7b19d8a53ab4605792f2fe
  • gist.github.com/superboy-zjc/aa3dfa161d7b19d8a53ab4605792f2fe
  • github.com/advisories/GHSA-wmjh-cpqj-4v6x
  • github.com/gradio-app/gradio
  • nvd.nist.gov/vuln/detail/CVE-2025-5320
  • vuldb.com/?ctiid.310491
  • vuldb.com/?id.310491
  • vuldb.com/?submit.580250

Code Behaviors & Features

Detect and mitigate CVE-2025-5320 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 starting from 5.0.0 up to 5.29.1

Solution

Unfortunately, there is no solution available yet.

Impact 3.7 LOW

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

Learn more about CVSS

Weakness

  • CWE-345: Insufficient Verification of Data Authenticity

Source file

pypi/gradio/CVE-2025-5320.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Tue, 19 Aug 2025 12:19:06 +0000.