low3.7
CVE-2025-5320
Gradio CORS Origin Validation Bypass Vulnerability
Impact
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.
Affected packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| pip | gradio | >= 5.0.0, <= 5.29.1 | none recorded |
Affected products
| Product | Affected versions |
|---|---|
| Gradio-App Gradio | before 5.29.1. |
Versions were read from the advisory text. No structured product data has been published for this record yet.
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://gist.github.com/superboy-zjc/aa3dfa161d7b19d8a53ab4605792f2fe
- https://gist.github.com/superboy-zjc/aa3dfa161d7b19d8a53ab4605792f2fe#proof-of-concept-poc
- https://vuldb.com/?ctiid.310491
- https://vuldb.com/?id.310491
- https://vuldb.com/?submit.580250
- https://github.com/advisories/GHSA-wmjh-cpqj-4v6x
- https://nvd.nist.gov/vuln/detail/CVE-2025-5320