AIToday
Open-Source AIAI Safety & AlignmentAI WeeklyPublished: Nov 23, 2026, 22:00 JST

Gradio patches CVE-2026-134825: forged Host: localhost leaks Hugging Face tokens

Send on LINE
Gradio patches CVE-2026-134825: forged Host: localhost leaks Hugging Face tokens

3 Key Points

  1. What happened

    CVE-2026-134825, rated 6.5/10, affects Gradio 6.27.0 before 6.32.0. A forged Host: localhost header bypasses auth in gradio/history.py, letting unauthenticated attackers use the operator's saved Hugging Face token to list buckets, read records and assets, and write buckets under the operator's account.

  2. Why it matters

    An attacker who reaches the app can act with the operator's Hugging Face identity, reading and writing bucket data without logging in. The exposure is limited to Gradio 6.27.0 before 6.32.0, so operators on those versions need the patched release.

WHO IT HITSTeams running Gradio apps on versions 6.27.0 before 6.32.0 with a Hugging Face token saved locally are exposed; attackers can read and write their bucket data, so those operators should move to a patched release.

Not sure about something? Ask the AI

Questions and answers are published on this page.

Summaries like this, every morning.

By signing up you agree to the Terms of Service and Privacy Policy.

Context & Analysis

The advisory, published Nov 22, 2026, assigns CVE-2026-134825 a CVSS score of 6.5/10 and maps it to CWE-290, authentication bypass by spoofing. The mechanism is narrow: the check in gradio/history.py trusts a Host: localhost header, so a forged request is treated as local. Working through gradio/history.py's run history endpoints, an attacker can list buckets, read records and assets, and write buckets under the operator's account.

The specific condition in the advisory is ssr_mode being enabled, where requests proxied through the local Node SSR server pass the loopback check. That places the exposure with Gradio deployments that use that mode and keep a Hugging Face token saved locally.

The NVD analysis is still pending, and the advisory directs operators to vendor references for patched versions and mitigation guidance. The affected range is Gradio 6.27.0 before 6.32.0.

FAQ
Which Gradio versions are affected?
Gradio 6.27.0 before 6.32.0, according to the CVE advisory.
How severe is CVE-2026-134825?
It has a CVSS score of 6.5/10, rated MEDIUM severity.
What can an attacker do with this flaw?
They can use the operator's locally saved Hugging Face token to list buckets, read records and assets, and write buckets under the operator's account.
Send on LINE

AI news that matters for your work, delivered every morning.

Pick your industry and the AI tools you use, and get news related to your work every day.

By signing up you agree to the Terms of Service and Privacy Policy.

Free · 30 seconds with Google · unsubscribe anytimeWhat is AIToday? →

Ask AI

Ask AI anything about this article. The AI reads this article, earlier AIToday articles, and Wikipedia, and cites its sources. Q&As are published on this page for other readers too.

Questions and answers are published on this page.

Related Articles

Next articleAsus ProArt P16 with RTX Spark runs local AI at $7,000