Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2026-27167— Gradio: Mocked OAuth Login Exposes Server Credentials and Uses Hardcoded Session Secret

Quick assessment

Affected
gradio-app gradio
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

Gradio是Gradio开源的一个开源 Python 库,是通过友好的 Web 界面演示机器学习模型的方法。 Gradio 4.16.0至6.6.0之前版本存在信任管理问题漏洞,该漏洞源于OAuth组件使用时自动启用模拟OAuth路由,可能导致远程攻击者窃取服务器所有者的HF令牌。

EPSS 0.39% · P31

Possible ATT&CK Techniques 1 AI

T1539 · Steal Web Session Cookie
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-27167

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
Gradio: Mocked OAuth Login Exposes Server Credentials and Uses Hardcoded Session Secret
Source: CVE Program / CVE List V5
Vulnerability Description
Gradio is an open-source Python package designed for quick prototyping. Starting in version 4.16.0 and prior to version 6.6.0, Gradio applications running outside of Hugging Face Spaces automatically enable "mocked" OAuth routes when OAuth components (e.g. `gr.LoginButton`) are used. When a user visits `/login/huggingface`, the server retrieves its own Hugging Face access token via `huggingface_hub.get_token()` and stores it in the visitor's session cookie. If the application is network-accessible, any remote attacker can trigger this flow to steal the server owner's HF token. The session cookie is signed with a hardcoded secret derived from the string `"-v4"`, making the payload trivially decodable. Version 6.6.0 fixes the issue.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:N
Source: CVE Program / CVE List V5
Vulnerability Type
使用硬编码的凭证
Source: CVE Program / CVE List V5
Vulnerability Title
Gradio 信任管理问题漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
Gradio是Gradio开源的一个开源 Python 库,是通过友好的 Web 界面演示机器学习模型的方法。 Gradio 4.16.0至6.6.0之前版本存在信任管理问题漏洞,该漏洞源于OAuth组件使用时自动启用模拟OAuth路由,可能导致远程攻击者窃取服务器所有者的HF令牌。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
gradio-app gradio >= 4.16.0, < 6.6.0 -

II. Public POCs for CVE-2026-27167

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-27167

请登录查看更多情报信息。

Vendor Advisories for CVE-2026-27167 (1)

Same Patch Batch · gradio-app · 2026-02-27 · 4 CVEs total

CVE-2026-28416 8.2 HIGH Gradio has SSRF via Malicious `proxy_url` Injection in `gr.load()` Config Processing
CVE-2026-28414 7.5 HIGH Gradio has Absolute Path Traversal on Windows with Python 3.13+
CVE-2026-28415 4.3 MEDIUM Gradio has Open Redirect in OAuth Flow

IV. Related Vulnerabilities

V. Comments for CVE-2026-27167

No comments yet


Leave a comment