CVE Tools

CVE-2026-20896

Gitea Docker image trusts spoofable reverse-proxy headers by default

Published: Jul 3, 2026Updated: Jul 7, 2026 Sources: CVE List NVDCWE-284

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.

In plain language

AI Act now

If you run Gitea in Docker behind a reverse proxy with reverse-proxy login headers enabled, a remote attacker can impersonate users by spoofing those headers—this is a serious, actively probed risk.

Executive summary

CVE-2026-20896 is a header-trust issue in the Gitea Docker image: it defaults to trusting spoofable reverse-proxy headers (via REVERSE_PROXY_TRUSTED_PROXIES=*), enabling unauthenticated attackers to impersonate users when reverse-proxy authentication headers (e.g., X-WEBAUTH-USER) are enabled.

If affected, business impact
Account takeover without loginPrivileged access escalationRepository tampering riskService disruption from compromise

What to do now

  1. Check whether your Gitea Docker setup has reverse-proxy authentication enabled (for example, it relies on headers like X-WEBAUTH-USER) and whether the container trusts all proxy IPs (REVERSE_PROXY_TRUSTED_PROXIES=*).
  2. If both are enabled, immediately change the configuration so Gitea trusts ONLY your actual reverse proxy’s IP(s) or hostname—not “all IP addresses.”
  3. Upgrade the Gitea Docker image to a release that includes the fix referenced in go-gitea/gitea pull/38151 (use the exact fixed tag/version shown on the Gitea vendor release page).
  4. If you can’t upgrade right away, temporarily disable the reverse-proxy login headers (or ensure those headers are stripped at the reverse proxy) until you apply the fix.
Patch / advisory Some work to apply

CVSS Vector Breakdown

AV:NAC:LPR:NUI:NS:UC:HI:HA:H
Exploitability
AV:NAttack Vector
Network
AC:LAttack Complexity
Low
PR:NPrivileges Required
None
UI:NUser Interaction
None
Scope
S:UScope
Unchanged
Impact
C:HConfidentiality
High
I:HIntegrity
High
A:HAvailability
High

Weaknesses

Affected Products

Gitea
oss-projectaka gitea open source git server

Exploitability

No known exploits, KEV entries, or remediation guidance available for this vulnerability yet.

References

and 1 more references View all →
5

Unlock Complete Vulnerability Intelligence

Get the full picture for CVE-2026-20896 and every CVE in our database. Create a free account — no credit card required.

Create Free Account
Plain-language analysis
Impact assessment and exploitation scenario in plain English
Attack graph visualization
Interactive attack path and kill chain mapping
Exploit details & PoC links
ExploitDB, Metasploit, GitHub PoCs with direct links
Nuclei scanner templates
Ready-to-use vulnerability scanner templates
Full remediation guide
Patch instructions, workarounds, and compliance impact
Interactive AI chat
Ask questions about this vulnerability in natural language
Related vulnerabilities
Semantically similar CVEs and attack patterns
REST API & MCP access
Integrate vulnerability data into your workflows