Description
Gitea versions up to and including 1.26.2 have incomplete SSRF protection in webhook and migration allow-list filtering.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Gitea | Gitea Open Source Git Server | ≤ 1.26.2 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Leap 16.0 | govulncheck-vulndb | 0.0.20260723T184607-160000.1.1 | openSUSE-SU-2026:21483-1 |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
GitHub 2 repositories
-
M8seven/cve-2026-22874-gitea-ssrf-allowlist ★ 2 · Jul 4, 2026
CVE-2026-22874 writeup: incomplete SSRF allow-list in Gitea webhook/migration (IPv6 transition and cloud metadata). Fixed in Gitea 1.26.3.
-
Eliot-code/CVE-2026-22874-PoC ★ 0 · Jul 5, 2026
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Go | code.gitea.io/gitea | < 1.26.3 | 1.26.3 | GHSA-2r5c-gw76-rh3w |
Advisories 2
- WID-SEC-2026-2027 Gitea: Mehrere Schwachstellen BSI CERT-Bund (WID) · Aug 12, 2026
- openSUSE-SU-2026:21483-1 Security update for govulncheck-vulndb SUSE / openSUSE Security Updates · Jul 31, 2026
References
- GitHub Security Advisory vendor-advisory
- GitHub Pull Request #38173 patch
- GitHub Pull Request #38059 patch
- Gitea v1.26.3 Release release-notes
- Gitea v1.26.4 Release Blog Post release-notes