Authentication Bypass in Gitea Docker Reverse Proxy Authentication
CVE-2026-20896 is a critical authentication bypass affecting official Gitea Docker images through version 1.26.2. Gitea supports reverse-proxy-based authentication using the X-WEBAUTH-USER header when requests originate from trusted proxies. The documented secure default for REVERSE_PROXY_TRUSTED_PROXIES is loopback-only (127.0.0.0/8,::1/128), but affected Docker images shipped with REVERSE_PROXY_TRUSTED_PROXIES = * in the default configuration template. In deployments where ENABLE_REVERSE_PROXY_AUTHENTICATION is enabled, this causes Gitea to trust authentication headers from any source IP rather than only from a legitimate upstream proxy. As a result, a remote attacker can send a crafted X-WEBAUTH-USER header directly to the Gitea instance and be authenticated as an arbitrary user, including an administrator. The issue is described as affecting Docker deployments; source-built Gitea instances using the standard sample configuration are reported as not affected.
Are you exposed to this one?
Mallory correlates every CVE against your assets, your vendors, and active adversary campaigns. Know which vulnerabilities matter for you, not just which ones are loud.
Impact, mitigation & remediation
What it means. What to do now. Patch path, mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Mitigation
If you can’t patch tonight, do this now.
Remediation
Patch, then assume compromise.
Exploits
No public exploits tracked yet. Mallory keeps watching.
No public exploit code observed for this vulnerability.
Recent activity
7 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.
A critical authentication bypass in Gitea Docker deployments where reverse proxy authentication trusts all IPs by default, allowing attackers to impersonate any user via a crafted HTTP header.
A critical authentication bypass in Gitea Docker deployments where reverse proxy trusted proxies default to '*' allows attackers to impersonate any user, including admins, via a single crafted HTTP header.
The version that knows your environment.
Query your assets running an affected version, and investigate the blast radius.
Every observed campaign linking this CVE to a named adversary.
Malware families riding this exploit, with evidence and IOCs.
YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Cross-references every affected SKU, including bundled OEM variants.
Community discussion across Reddit, Mastodon, and other social sources.