gradio-app gradio up to 5.29.1 CORS is_valid_origin localhost_aliases origin validation

Summaryinfo

A vulnerability classified as critical has been found in gradio-app gradio up to 5.29.1. Impacted is the function is_valid_origin of the component CORS Handler. Performing a manipulation of the argument localhost_aliases results in origin validation. This vulnerability is identified as CVE-2025-5320. The attack can be initiated remotely. Additionally, an exploit exists. The vendor was contacted early about this disclosure but did not respond in any way.

Detailsinfo

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 with an unknown input leads to a origin validation vulnerability. CWE is classifying the issue as CWE-346. The product does not properly verify that the source of data or communication is valid. This is going to have an impact on integrity.

The weakness was released by Jiacheng Zhong, Zhengyu Liu (Gavin Zhong and Zhengyu Liu). It is possible to read the advisory at gist.github.com. This vulnerability is uniquely identified as CVE-2025-5320. The exploitability is told to be difficult. It is possible to initiate the attack remotely. No form of authentication is needed for exploitation. Technical details and a public exploit are known.

The exploit is shared for download at gist.github.com. It is declared as proof-of-concept. The vendor was contacted early about this disclosure but did not respond in any way.

There is no information about possible countermeasures known. It may be suggested to replace the affected object with an alternative product.

Statistical analysis made it clear that VulDB provides the best quality for vulnerability data.

Productinfo

Vendor

Name

Version

CPE 2.3info

CPE 2.2info

CVSSv4info

VulDB Vector: 🔒
VulDB Reliability: 🔍

CNA CVSS-B Score: 🔒
CNA CVSS-BT Score: 🔒
CNA Vector: 🔒

CVSSv3info

VulDB Meta Base Score: 3.7
VulDB Meta Temp Score: 3.5

VulDB Base Score: 3.7
VulDB Temp Score: 3.4
VulDB Vector: 🔒
VulDB Reliability: 🔍

CNA Base Score: 3.7
CNA Vector: 🔒

CVSSv2info

AVACAuCIA
💳💳💳💳💳💳
💳💳💳💳💳💳
💳💳💳💳💳💳
VectorComplexityAuthenticationConfidentialityIntegrityAvailability
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock

VulDB Base Score: 🔒
VulDB Temp Score: 🔒
VulDB Reliability: 🔍

Exploitinginfo

Class: Origin validation
CWE: CWE-346 / CWE-345
CAPEC: 🔒
ATT&CK: 🔒

Physical: No
Local: No
Remote: Yes

Availability: 🔒
Access: Public
Status: Proof-of-Concept
Download: 🔒

EPSS Score: 🔒
EPSS Percentile: 🔒

Price Prediction: 🔍
Current Price Estimation: 🔒

0-DayUnlockUnlockUnlockUnlock
TodayUnlockUnlockUnlockUnlock

Threat Intelligenceinfo

Interest: 🔍
Active Actors: 🔍
Active APT Groups: 🔍

Countermeasuresinfo

Recommended: no mitigation known
Status: 🔍

0-Day Time: 🔒

Timelineinfo

05/29/2025 Advisory disclosed
05/29/2025 +0 days VulDB entry created
06/01/2025 +3 days VulDB entry last update

Sourcesinfo

Advisory: gist.github.com
Researcher: Jiacheng Zhong, Zhengyu Liu (Gavin Zhong, Zhengyu Liu)
Status: Not defined

CVE: CVE-2025-5320 (🔒)
GCVE (CVE): GCVE-0-2025-5320
GCVE (VulDB): GCVE-100-310491
scip Labs: https://www.scip.ch/en/?labs.20161013

Entryinfo

Created: 05/29/2025 10:12
Updated: 06/01/2025 07:37
Changes: 05/29/2025 10:12 (57), 06/01/2025 06:41 (2), 06/01/2025 07:37 (31)
Complete: 🔍
Submitter: Gavin Zhong
Committer: Gavin Zhong
Cache ID: 216::103

Submitinfo

Accepted

  • Submit #580250: gradio <=5.29.1 Cross-Site Request Forgery (by Gavin Zhong)

Statistical analysis made it clear that VulDB provides the best quality for vulnerability data.

Discussion

No comments yet. Languages: en.

Please log in to comment.

Do you know our Splunk app?

Download it now for free!