CVE-2026-48545: Gradio: cookie injection hijacks cross-Space sessions
MEDIUMGradio before 6.15.0 uses a single module-level HTTP client shared across all users in its reverse proxy endpoint — meaning any attacker who controls a HuggingFace Space can return a parent-domain Set-Cookie header that gets stored in that shared client and silently replayed into every subsequent proxy request to other legitimate Spaces, affecting all users of the same deployment. The attack is most dangerous in multi-tenant environments like HuggingFace Spaces, where a single poisoned Space can corrupt the session state of unrelated users accessing entirely different applications. There is no public exploit, no KEV listing, and no EPSS data, but the C:H/I:H CVSS impact scores mean a successful cross-Space session fixation can result in full account compromise. Upgrade all Gradio deployments to 6.15.0 immediately and audit proxy request logs for Set-Cookie headers originating from unexpected domains.
What is the risk?
Medium risk in isolated single-tenant deployments; elevated risk in shared multi-tenant environments such as HuggingFace Spaces. The shared HTTP client design flaw converts any single attacker-controlled Space into a persistent injection point for all users of the same Gradio instance — a non-obvious blast radius that significantly exceeds what the CVSS 6.8 score alone suggests. High attack complexity limits opportunistic exploitation, but motivated adversaries targeting high-traffic Spaces have a practical path to cross-user session fixation without needing any privileges. The confidentiality and integrity impact scores are both High, making successful exploitation severe despite the narrow exploitation window.
Attack Kill Chain
What systems are affected?
| Package | Ecosystem | Vulnerable Range | Patched |
|---|---|---|---|
| gradio | pip | — | No patch |
Do you use gradio? You're affected.
Severity & Risk
Attack Surface
What should I do?
5 steps-
Upgrade Gradio to 6.15.0 immediately — this is the only complete remediation (see commit feb7237 and release tag gradio@6.15.0).
-
If immediate upgrade is not possible, restrict or disable the reverse proxy endpoint at the network or WAF layer to prevent cookie injection vectors.
-
Enforce cookie SameSite=Strict and Secure attributes on session cookies in applications proxied through Gradio to reduce replayed-cookie impact.
-
Review proxy request logs for Set-Cookie headers whose domain scope exceeds the originating Space's domain — anomalous parent-domain cookies are the key indicator.
-
For HuggingFace Spaces operators, prioritize upgrade of high-traffic shared deployments where cross-user blast radius is greatest.
Classification
Compliance Impact
This CVE is relevant to:
Frequently Asked Questions
What is CVE-2026-48545?
Gradio before 6.15.0 uses a single module-level HTTP client shared across all users in its reverse proxy endpoint — meaning any attacker who controls a HuggingFace Space can return a parent-domain Set-Cookie header that gets stored in that shared client and silently replayed into every subsequent proxy request to other legitimate Spaces, affecting all users of the same deployment. The attack is most dangerous in multi-tenant environments like HuggingFace Spaces, where a single poisoned Space can corrupt the session state of unrelated users accessing entirely different applications. There is no public exploit, no KEV listing, and no EPSS data, but the C:H/I:H CVSS impact scores mean a successful cross-Space session fixation can result in full account compromise. Upgrade all Gradio deployments to 6.15.0 immediately and audit proxy request logs for Set-Cookie headers originating from unexpected domains.
Is CVE-2026-48545 actively exploited?
No confirmed active exploitation of CVE-2026-48545 has been reported, but organizations should still patch proactively.
How to fix CVE-2026-48545?
1. Upgrade Gradio to 6.15.0 immediately — this is the only complete remediation (see commit feb7237 and release tag gradio@6.15.0). 2. If immediate upgrade is not possible, restrict or disable the reverse proxy endpoint at the network or WAF layer to prevent cookie injection vectors. 3. Enforce cookie SameSite=Strict and Secure attributes on session cookies in applications proxied through Gradio to reduce replayed-cookie impact. 4. Review proxy request logs for Set-Cookie headers whose domain scope exceeds the originating Space's domain — anomalous parent-domain cookies are the key indicator. 5. For HuggingFace Spaces operators, prioritize upgrade of high-traffic shared deployments where cross-user blast radius is greatest.
What systems are affected by CVE-2026-48545?
This vulnerability affects the following AI/ML architecture patterns: ML demo platforms, model serving UIs, shared Gradio deployments, HuggingFace Spaces multi-tenant environments.
What is the CVSS score for CVE-2026-48545?
CVE-2026-48545 has a CVSS v3.1 base score of 6.8 (MEDIUM).
AI Security Impact
Affected AI Architectures
MITRE ATLAS Techniques
AML.T0049 Exploit Public-Facing Application AML.T0078 Drive-by Compromise AML.T0091.000 Application Access Token Compliance Controls Affected
Technical Details
Original Advisory
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.
Exploitation Scenario
An adversary creates a HuggingFace Space running a vulnerable Gradio version and configures the Space backend to return HTTP responses containing a Set-Cookie header scoped to the parent domain (e.g., huggingface.co). When any user's browser triggers a proxy request through the shared Gradio HTTP client — even to a completely unrelated legitimate Space — the shared client stores the attacker's injected cookie. From that point forward, the shared client automatically includes the attacker's cookie in all proxy requests made on behalf of other users to legitimate Spaces. The attacker's cookie is presented to target Spaces as if it were the user's own session credential, enabling cross-Space session fixation; if the target Space accepts the cookie for authentication, the adversary achieves full session takeover without ever interacting with the victim directly.
Weaknesses (CWE)
CVSS Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N References
Timeline
Related Vulnerabilities
CVE-2024-47167 9.8 Gradio: unauthenticated SSRF in /queue/join, internal pivot
Same package: gradio CVE-2024-39236 9.8 Gradio: code injection via component metadata (CVSS 9.8)
Same package: gradio CVE-2023-25823 9.8 Gradio: hardcoded SSH key leaks via share=True demos
Same package: gradio CVE-2024-0964 9.4 Gradio: unauthenticated LFI exposes full server filesystem
Same package: gradio CVE-2023-34239 9.1 Gradio: path traversal + SSRF exposes model files & infra
Same package: gradio