gradio-app gradio up to 5.29.1 CORS is_valid_origin localhost_aliases origin validation
Summary
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.
Details
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.
Product
Vendor
Name
Version
CPE 2.3
CPE 2.2
CVSSv4
VulDB Vector: 🔒VulDB Reliability: 🔍
CNA CVSS-B Score: 🔒
CNA CVSS-BT Score: 🔒
CNA Vector: 🔒
CVSSv3
VulDB Meta Base Score: 3.7VulDB 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: 🔒
CVSSv2
| AV | AC | Au | C | I | A |
|---|---|---|---|---|---|
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| Vector | Complexity | Authentication | Confidentiality | Integrity | Availability |
|---|---|---|---|---|---|
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
VulDB Base Score: 🔒
VulDB Temp Score: 🔒
VulDB Reliability: 🔍
Exploiting
Class: Origin validationCWE: 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-Day | Unlock | Unlock | Unlock | Unlock |
|---|---|---|---|---|
| Today | Unlock | Unlock | Unlock | Unlock |
Threat Intelligence
Interest: 🔍Active Actors: 🔍
Active APT Groups: 🔍
Countermeasures
Recommended: no mitigation knownStatus: 🔍
0-Day Time: 🔒
Timeline
05/29/2025 Advisory disclosed05/29/2025 VulDB entry created
06/01/2025 VulDB entry last update
Sources
Advisory: gist.github.comResearcher: 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
Entry
Created: 05/29/2025 10:12Updated: 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
Submit
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.
No comments yet. Languages: en.
Please log in to comment.