Vulnerability · Published May 29, 2025 · Assigned by VulDB
CVE-2025-5320gradio-app gradio CORS is_valid_origin privilege escalation
Low 3.7
In plain English
A low-severity insufficient verification of data authenticity in gradio from gradio-app. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 19% of all known vulnerabilities).
Official description
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 erweiterte Rechte. 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 & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| PyPI | gradio | no fix listed | GHSA-wmjh-cpqj-4v6x |
| PyPI | gradio | no fix listed | PYSEC-2026-1423 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| gradio-app | gradio | 5.29.05.29.1 |
Weakness: CWE-346, CWE-345 · Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N
References
- VDB-310491 | gradio-app gradio CORS is_valid_origin privilege escalation vdb-entry, technical-description
- VDB-310491 | CTI Indicators (IOB, IOC, IOA) signature, permissions-required
- Submit #580250 | gradio <=5.29.1 Cross-Site Request Forgery third-party-advisory
- https://gist.github.com/superboy-zjc/aa3dfa161d7b19d8a53ab4605792f2fe related
- https://gist.github.com/superboy-zjc/aa3dfa161d7b19d8a53ab4605792f2fe#proof-of-concept-poc exploit