News · Gradio (gradio-app) · 2 min read
Event date: · Published:
Gradio patches auth-bypass flaw that exposed local Hugging Face tokens
GitHub disclosed a high-severity authentication bypass in Gradio that let remote attackers steal locally stored Hugging Face tokens, fixed in version 6.32.0.
GitHub published a high-severity security advisory for Gradio, the widely used Python framework for building AI and machine learning app interfaces, on November 23, 2026, detailing an authentication bypass flaw that let unauthenticated remote attackers steal operators' locally stored Hugging Face tokens by spoofing a Host header, as described in Gradio 6.27.0 before 6.32.0 contains an authentication bypass vulnerability.
What changed in Gradio
- Advisory GHSA-4cx6-qfwr-9vfq, tracked as CVE-2026-134825, carries a High severity rating with a CVSS v4 score of 8.3.
- The flaw is classified as CWE-290, Authentication Bypass by Spoofing, and sits in the
gradio/history.pyfile. - Affected versions run from 6.27.0 up to but not including 6.32.0, with the fix shipping in Gradio 6.32.0.
- When SSR mode is active, an attacker can send a forged
Host: localhostheader to bypass loopback validation. - That bypass grants unauthenticated access to the app's run-history endpoints, letting attackers list buckets, read records and assets, and write buckets under the operator's account, including the operator's locally stored Hugging Face token.
Why it matters for AI builders
Gradio powers a huge share of public AI demo apps and Hugging Face Spaces, so a remote, credential-free bypass that leaks Hugging Face tokens can cascade into account or repository compromise for anyone running an affected Gradio app.
What to do next
Operators running Gradio between versions 6.27.0 and 6.32.0 should upgrade to 6.32.0, where the authentication bypass is fixed, to close off unauthenticated access to run-history endpoints and protect locally stored Hugging Face tokens.
Sources
- Gradio 6.27.0 before 6.32.0 contains an authentication bypass vulnerability (GitHub Security Advisories, November 23, 2026, official)
Written with AI assistance, strictly from the sources listed above. Before it went live, automated checks verified its dates, sources and every language edition.