CORS Handling Flaw in Gradio by Gradio-App
CVE-2025-5320

6.3MEDIUM

Key Information:

Vendor

Gradio-app

Status
Vendor
CVE Published:
29 May 2025

Badges

👾 Exploit Exists🟡 Public PoC

What is CVE-2025-5320?

A security vulnerability has been identified in Gradio by Gradio-App, specifically affecting versions up to 5.29.1. The flaw resides in the CORS Handler's function 'is_valid_origin', where improper handling of the 'localhost_aliases' argument leads to origin validation errors. This weakness allows attackers to potentially exploit the application remotely. The complexity of successfully executing an attack is considered high, and despite public disclosure, the vendor has not responded to the report.

Affected Version(s)

gradio 5.29.0

gradio 5.29.1

Exploit Proof of Concept (PoC)

PoC code is written by security researchers to demonstrate the vulnerability can be exploited. PoC code is also a key component for weaponization which could lead to ransomware.

References

CVSS V4

Score:
6.3
Severity:
MEDIUM
Confidentiality:
None
Integrity:
Low
Availability:
None
Attack Vector:
Network
Attack Complexity:
High
Attack Required:
None
Privileges Required:
Undefined
User Interaction:
None

Timeline

  • 🟡

    Public PoC available

  • 👾

    Exploit known to exist

  • Vulnerability published

  • Vulnerability Reserved

Credit

Gavin Zhong (VulDB User)
.
CVE-2025-5320 : CORS Handling Flaw in Gradio by Gradio-App