Gradio CORS Origin Validation Bypass Vulnerability
CVE-2025-5320 · GHSA-wmjh-cpqj-4v6x · published 2025-05-29 · updated 2025-06-05
- Severity
- Low
- CVSS score
- 3.7
- Chance of exploitation (EPSS)
- 0.27%
- Fixed in
- No fix yet
- Exploitation Public proof of concept
- Automatable No
- Technical impact Partial
- CISA SSVC
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.
No fixed release is listed yet for gradio. Limit what it can reach, or stop using it until a fix ships, and follow the source advisory for updates.
| Package | Registry | Affected | Fixed in |
|---|---|---|---|
| gradio | PyPI | >= 5.0.0, <= 5.29.1 | No fix yet |
- CriticalMarimo: Pre-Auth Remote Code Execution via Terminal WebSocket Authentication BypassmarimoExploited
- CriticalLangflow CORS misconfiguration enables Account Takeover and RCElangflowExploited
- HighLiteLLM: MCP Authentication Bypass via OAuth2 Passthrough FallbacklitellmExploited
- HighLangflow: IDOR Vulnerability in `/api/v1/responses` Endpoint Allows Authenticated Attackers to Access Another User's FlowlangflowExploited
- CriticalTodoist MCP Server: Browser DNS rebinding lets websites write and delete Todoist data through local MCP server@doist/todoist-mcp
- CriticalLangflow: Unauthenticated Flow Execution via Webhook Authentication Bypasslangflow
- CriticalGradio Blocked Path ACL Bypass Vulnerabilitygradio
- CriticalGradio allows users to access arbitrary filesgradio
- CriticalGradio Exposure of Sensitive Information to an Unauthorized Actor vulnerabilitygradio
- CriticalFiles on the host computer can be accessed from the Gradio interfacegradio
- HighGradio FileExplorer preprocess path traversal allows files outside root_dir to reach callbacksgradio
- HighGradio contains a cookie injection vulnerabilitygradio
The impact, patch and workaround text comes from the advisory, shortened (GitHub Advisory Database, CC BY 4.0). Proof-of-concept and reproduction sections and code are left out; the original advisory has them.