Vulnerability advisory

CVE-2026-20896

Gitea Docker image trusts spoofable reverse-proxy headers by default

Published Updated OSV record ↗

Also known as GHSA-f75j-4cw6-rmx4GO-2026-6051

Severity
  • CVSS 3.xCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Affected versions

Repository

Affected commitsFixed by commit
GIT github.com/go-gitea/gitea ↗
All commits before 4aa0d704f2c7d30351016b740bfc45247fd77efa4aa0d704f2c7d30351016b740bfc45247fd77efa
Also listed as affected (43)
  • v1.26.2
  • v1.26.1
  • v1.26.0
  • v1.26.0-rc0
  • v1.27.0-dev
  • v1.26.0-dev
  • v1.25.0-dev
  • v1.24.0-dev
  • v1.22.0-rc1
  • v1.23.0-dev
  • v1.22.0-rc0
  • v1.21.0-rc0
  • v1.22.0-dev
  • v1.20.0-rc0
  • v1.21.0-dev
  • v1.20.0-dev
  • v1.19.0-rc0
  • v1.18.0-rc0
  • v1.19.0-dev
  • v1.18.0-dev
  • v1.17.0-dev
  • v1.16.0-rc1
  • v1.15.0-rc1
  • v1.16.0-dev
  • v1.15.0-dev
  • v1.14.0-dev
  • v1.13.0-dev
  • v1.12.0-dev
  • v1.10.5
  • v1.11.0-rc1
  • v1.10.0-rc1
  • v1.11.0-dev
  • v1.9.0-rc1
  • v1.10.0-dev
  • v1.9.0-dev
  • v1.7.0-dev
  • v1.6.0-rc1
  • v1.6.0-dev
  • v1.5.0-rc1
  • v1.5.0-dev
  • v1.1.0
  • v1.0.0
  • v0.9.99

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.

References

  • Codex
  • Claude Code
  • VS Code
  • GitHub Copilot
  • Cursor
  • Cline
  • Windsurf
  • Google Anti-gravity
  • OpenCode
  • Pi
  • Gemini CLI
  • Hermes Agent
  • Zed
  • Junie
  • Qwen Code
  • Kiro
  • Kilo Code
  • Factory Droid

Set up GitHits for your agents

Run this command:

<> bash
npx githits@latest init

What happens next:

  1. Opens your browser to authorize GitHits
  2. Asks whether to set up GitHits at the user or project level
  3. Detects your supported AI coding tools
  4. Lets you choose which tools to configure
  5. Configures the selected tools