Vulnerability in Gitea Open Source Git Server
CVE-2026-20896
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.
Published · last modified .
CVSS v3 metric
CVSS v3 base score 9.8 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS 0.028, 86.5th percentile (last changed ); unchanged over 30 days. About EPSS.
Affected products
- Gitea Open Source Git Server — versions 0
Weakness classification (CWE)
Public exploits and proof-of-concept code
9 public repositories with exploit or proof-of-concept code for this CVE:
- szybnev/cve-2026-20896-gitea-poc (10 stars, last pushed 2026-07-07): CVE-2026-20896 Gitea Docker X-WEBAUTH-USER auth bypass checker
- XaocZenon/CVE-2026-20896 (6 stars, last pushed 2026-07-16): this is a modified POC of rz1027 for CVE-2026-20896
- rz1027/CVE-2026-20896 (6 stars, last pushed 2026-07-05): Public PoC and detector for CVE-2026-20896 ("Gitea Docker: One Header, Any User")
- yym8538/CVE-2026-20896 (1 star, last pushed 2026-08-21)
- judgedbykira/CVE-2026-20896-Gitea-Authentication-Bypass (1 star, last pushed 2026-08-15): An explanation and PoC to exploit CVE-2026-20896 Authentication Bypass Vulnerability on Gitea. Being able to steal session tokens for valid users in the Gitea instance.
- EQSTLab/CVE-2026-20896 (1 star, last pushed 2026-08-04): Gitea Docker Image Authentication Bypass
- kaleth4/CVE-2026-20896 (1 star, last pushed 2026-07-03)
- Raincombat/CVE-2026-20896-Gitea-CTF (last pushed 2026-10-17): CVE-2026-20896 Gitea Docker CTF Challenge
- Lite-os15/Lab-001-Gitea-CVE-2026-20896- (last pushed 2026-07-24)
References
- GitHub Security Advisory (vendor-advisory)
- GitHub Pull Request #38151 (patch)
- Gitea v1.26.3 Release (release-notes)
- Gitea v1.26.4 Release Blog Post (release-notes)
This CVE has public exploit evidence. See the latest CVEs with public exploits.