CVE-2025-5320: gradio · Origin Validation Error
Affects gradioSource CVE Database V5
Not known to be exploited · CVSS 6.3 Medium.
Data as of 25 Oct 2026, 19:02 UTC
- EPSS
- 0.2% chance of exploitation in 30 days – higher than 18% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 29 May 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 2026-10-25.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
PyPIgradiopkg:pypi/gradioOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
Given the absence of official patches, European organizations should implement several specific mitigations: 1) Restrict network exposure of gradio services by limiting access to trusted internal networks or VPNs to reduce remote attack surface. 2) Implement strict firewall rules and network segmentation to isolate gradio instances from untrusted sources. 3) Review and harden CORS policies manually, if possible, by auditing and modifying the is_valid_origin function or equivalent configuration to enforce strict origin validation and whitelist only known safe origins. 4) Monitor application logs for unusual origin header values or access patterns indicative of exploitation attempts. 5) Employ runtime application self-protection (RASP) or web application firewalls (WAF) with custom rules to detect and block suspicious CORS header manipulations. 6) Plan for prompt upgrade to patched versions once available and maintain communication with the vendor or community for updates. 7) Conduct penetration testing focused on origin validation and CORS handling to identify potential exploitation vectors in the deployment environment.
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.