CVE-2026-22874 Gitea webhook and migration allow-list filtering permits SSRF
Attackers can bypass SSRF protections in Gitea webhooks and migrations to access internal network resources.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2026-22874?
CVE-2026-22874 is a critical server-side request forgery vulnerability in Gitea Open Source Git Server, published on 3 Jul 2026. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
Gitea versions up to and including 1.26.2 have incomplete SSRF protection in webhook and migration allow-list filtering.
Weakness: CWE-918
Which versions are affected by CVE-2026-22874?
3 open source packages ship an affected version, including code.gitea.io/gitea.
| Package | Affected | Fixed in |
|---|---|---|
code.gitea.io/gitea Go | All versions | 1.26.3 |
code.gitea.io/gitea Go | All versions | 1.26.3 |
code.gitea.io/gitea Go | All versions | 1.26.3 |
How do I fix CVE-2026-22874?
Upgrade code.gitea.io/gitea to 1.26.3 or later.
Upgrade, and send outbound requests through an allow-list that blocks internal addresses. More about Server-side request forgery.
Is CVE-2026-22874 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-22874 exists.
Public exploit code: 2 proofs of concept on GitHub.
Sources
Also known as GHSA-2r5c-gw76-rh3w, GO-2026-6030.