CVE-2026-20896: CWE-284 in Gitea Gitea Open Source Git Server
Gitea Docker image versions up to and including 1.26.2 have a default configuration that trusts all source IPs for reverse-proxy authentication headers. This allows any source IP to impersonate a user when headers like X-WEBAUTH-USER are enabled, leading to a critical security vulnerability.
AI Analysis
Technical Summary
The vulnerability in Gitea Open Source Git Server Docker images (<=1.26.2) arises from the default setting REVERSE_PROXY_TRUSTED_PROXIES=* which trusts all source IP addresses. When reverse-proxy authentication headers such as X-WEBAUTH-USER are enabled, this configuration allows an attacker to spoof their IP address and impersonate any user. This is classified as CWE-284 (Improper Access Control) and has a CVSS 3.1 score of 9.8, indicating critical severity with network attack vector, no privileges or user interaction required, and high impact on confidentiality, integrity, and availability.
Potential Impact
An attacker can impersonate any user by sending crafted requests with authentication headers from any source IP address. This compromises user authentication, potentially granting unauthorized access to sensitive repositories and administrative functions, leading to full system compromise.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, users should avoid enabling reverse-proxy authentication headers or restrict the REVERSE_PROXY_TRUSTED_PROXIES setting to trusted IP addresses only to prevent unauthorized user impersonation.
CVE-2026-20896: CWE-284 in Gitea Gitea Open Source Git Server
Description
Gitea Docker image versions up to and including 1.26.2 have a default configuration that trusts all source IPs for reverse-proxy authentication headers. This allows any source IP to impersonate a user when headers like X-WEBAUTH-USER are enabled, leading to a critical security vulnerability.
CVSS v3.1
Score 9.8critical
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in Gitea Open Source Git Server Docker images (<=1.26.2) arises from the default setting REVERSE_PROXY_TRUSTED_PROXIES=* which trusts all source IP addresses. When reverse-proxy authentication headers such as X-WEBAUTH-USER are enabled, this configuration allows an attacker to spoof their IP address and impersonate any user. This is classified as CWE-284 (Improper Access Control) and has a CVSS 3.1 score of 9.8, indicating critical severity with network attack vector, no privileges or user interaction required, and high impact on confidentiality, integrity, and availability.
Potential Impact
An attacker can impersonate any user by sending crafted requests with authentication headers from any source IP address. This compromises user authentication, potentially granting unauthorized access to sensitive repositories and administrative functions, leading to full system compromise.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, users should avoid enabling reverse-proxy authentication headers or restrict the REVERSE_PROXY_TRUSTED_PROXIES setting to trusted IP addresses only to prevent unauthorized user impersonation.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- Gitea
- Date Reserved
- 2026-03-03T03:25:59.988Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a4820fb27e9c79719acbf16
Added to database: 07/03/2026, 20:52:11 UTC
Last enriched: 07/22/2026, 00:51:27 UTC
Last updated: 08/16/2026, 12:41:08 UTC
Views: 111
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.