# CVE-2026-134825: Gradio 6.27.0 before 6.32.0 Authentication Bypass via Forged Host Header

> Unauthenticated attackers can use an operator's Hugging Face token via a forged Host header to read and write Gradio history buckets when SSR is enabled.

- **Severity:** High 8.3 (`CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Harmful if only installed:** No
- **Needs a specific call:** Yes
- **Fix available:** No
- **Published:** 22 Nov 2026
- **Updated:** 24 Nov 2026
- **Also known as:** GHSA-4cx6-qfwr-9vfq

## What is CVE-2026-134825?

CVE-2026-134825 is a high-severity authentication bypass vulnerability in Gradio, published on 22 Nov 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

### Official description

Gradio 6.27.0 before 6.32.0 contains an authentication bypass vulnerability in gradio/history.py that allows remote unauthenticated attackers to use the operator's locally saved Hugging Face token by sending a forged Host: localhost header. When ssr_mode is enabled, requests proxied through the local Node SSR server pass the loopback check, letting attackers call run history endpoints to list buckets, read records and assets, and write buckets under the operator's account.

Weakness: CWE-290 (Authentication Bypass by Spoofing)

## Which versions are affected by CVE-2026-134825?

1 open source package ship an affected version, including gradio.

An affected version is only exploitable if your software uses the vulnerable function or option. Many projects that include it are not exposed.


| Package | Ecosystem | PURL | Affected | Fixed in |
| --- | --- | --- | --- | --- |
| `gradio` | PyPI | `pkg:pypi/gradio` | From 6.27.0 | 6.32.0 |

## How do I fix CVE-2026-134825?

Upgrade gradio to 6.32.0 or later.

## Is CVE-2026-134825 being exploited?

There is no known exploitation of CVE-2026-134825 in the wild and no public exploit code.

Public exploit code:

- Gradio <6.32.0: resolve_token grants operator's locally saved HF token when Host and peer look loopback — SSR proxy makes this true for remote callers. Verbatim resolver from fda8037^ vs fix: forged localhost request gets operator token on vuln, None on fixed (github_poc): https://github.com/googlesky/CVE-2026-134825

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2026-134825 and fix it if it is affected.

What it is: CVE-2026-134825 is a high-severity authentication bypass vulnerability in Gradio, published on 22 Nov 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.
Exploitation: There is no known exploitation of CVE-2026-134825 in the wild and no public exploit code.
Exposure: An affected version is only exploitable if your software uses the vulnerable function or option. Many projects that include it are not exposed.

Affected packages and fixed versions:
- gradio (PyPI): affected from 6.27.0; fixed in 6.32.0

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2026-134825/ (Markdown: https://insights.sbomify.com/CVE-2026-134825/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2026-134825
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-134825
- OSV: https://osv.dev/vulnerability/CVE-2026-134825

---
From sbomify Insights: https://insights.sbomify.com/CVE-2026-134825/
Summaries are generated and may contain mistakes; the official description above is the record.
