PYSEC-2026-2178: Gradio < 6.15.0 Cookie Injection via Shared Proxy Client

Published May 27, 2026
·
Updated

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

1 affected component
gradio gradio<6.15.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade gradio to a version that resolves this vulnerability.

    Fixed in 6.15.0

Event History

May 27, 2026
CVE Published
via OSV·02:59 PM
Data Sourced
via OSV·02:59 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

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.

2

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.

3

What version resolves the vulnerability?

Upgrade Gradio to version 6.15.0 or later. Versions before 6.15.0 are affected.

4

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203