GHSA-h3h8-3v2v-rg7m · Severity: low · Ecosystem: pip — Gradio: Mocked OAuth Login Exposes Server Credentials and Uses Hardcoded Session Secret
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.
Conclusion & alert: CVE-2026-27167 is rated Exploit Available (50/100): low exploitation likelihood (EPSS 0.45%). Core evidence: 1 public exploit reference(s) are indexed (Exploit-DB). Mandatory action: Public exploits are available—assess exposure, apply mitigations, and prioritize patching.
Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.
| EDB-ID | Source | Kind | Published | Link |
|---|---|---|---|---|
| — | nvd_ref | exploit_tag | Exploit-DB ↗ |
EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).
| # | Date | Old EPSS score | New EPSS score | Delta (New - Old) |
|---|---|---|---|---|
| 1 | 2026-06-15 | 0.02% | 0.45% | +0.43% |
| 2 | 2026-03-21 | 0.05% | 0.02% | -0.03% |
| 3 | 2026-03-05 | — | 0.05% | — |
Full EPSS history (4 records total)
CVSS metrics for this CVE.
| Base score | Version | Severity | Vector | Exploitability | Impact | Score source |
|---|---|---|---|---|---|---|
| 0.0 | 3.1 | NONE |
|
2.2 | 0.0 | [email protected] |
| 5.9 | 3.1 | MEDIUM |
|
2.2 | 3.6 | [email protected] |
GHSA-h3h8-3v2v-rg7m · Severity: low · Ecosystem: pip — Gradio: Mocked OAuth Login Exposes Server Credentials and Uses Hardcoded Session Secret
| vendor | priority | summary | link |
|---|---|---|---|
redhat
|
low | — | https://access.redhat.com/security/cve/CVE-2026-27167 |
| Vendor | Product | Version | Raw CPE |
|---|---|---|---|
| gradio_project | gradio | >= 4.16.0, < 6.6.0 | cpe:2.3:a:gradio_project:gradio:*:*:*:*:*:python:*:* |
| URL | Tags |
|---|---|
| https://github.com/gradio-app/gradio/security/advisories/GHSA-h3h8-3v2v-rg7m | Exploit Vendor Advisory |