Improper access control in Gitea - CVE-2026-20896
Published: June 22, 2026
Gitea
Detailed vulnerability description
The vulnerability allows a remote attacker to impersonate arbitrary users.
The vulnerability exists due to improper access control in reverse proxy authentication handling when processing the X-WEBAUTH-USER header from direct HTTP requests. A remote attacker can send a specially crafted request with an X-WEBAUTH-USER header to impersonate arbitrary users.
Only Docker image deployments are affected, and exploitation requires ENABLE_REVERSE_PROXY_AUTHENTICATION to be enabled.