PYSEC-2026-2178: Gradio < 6.15.0 Cookie Injection via Shared Proxy Client
Gradio before version 6.15.0 contains a cookie injection vulnerability that allows remote attackers to perform cross-Space session fixation by exploiting a shared module-level HTTP client used across all users in the reverse proxy endpoint. Attackers controlling any HF Space can return a parent-domain cookie that the shared client stores and automatically replays into all subsequent proxy requests to other legitimate Spaces, affecting all users of the same Gradio deployment.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
gradioto a version that resolves this vulnerability.Fixed in 6.15.0
Event History
Frequently Asked Questions
Who is exposed to this issue?
All users of the same affected Gradio deployment can be affected when the reverse proxy endpoint is used. An attacker only needs control of any HF Space reachable through that deployment to target subsequent proxy requests to legitimate Spaces.
Does exploitation require an authenticated account or user interaction?
The supplied vector indicates no privileges are required and user interaction is required. The attack relies on a user making requests through the affected reverse proxy after the attacker-controlled Space causes the shared HTTP client to store a cookie.
What version resolves the vulnerability?
Upgrade Gradio to version 6.15.0 or later. Versions before 6.15.0 are affected.
How can I determine whether a deployment is at risk?
Check whether the deployment runs Gradio earlier than 6.15.0 and uses the reverse proxy endpoint to access HF Spaces. Affected deployments share a module-level HTTP client across users, allowing cookies returned by one Space to be replayed in later proxy requests.