---
title: "CVE-2026-22874: Gitea: Incomplete SSRF Protection in Webhook and Migration Allow-list Default Filter"
url: https://erroneo.us/security/cve/CVE-2026-22874/
description: "CVE-2026-22874 (code.gitea.io/gitea (Go)): Gitea versions up to and including 1.26.2 have incomplete SSRF protection in webhook and migration allow-list…"
type: vulnerability-record
section: "Security Digest"
date_published: 2026-07-03
date_modified: 2026-07-21
publisher: erroneo.us
author: erroneo.us Security Desk
cve: "CVE-2026-22874"
kev: false
cvss: 9.6
epss: 0.00464
license: All rights reserved. Quote with attribution and a link.
---

# CVE-2026-22874: Gitea: Incomplete SSRF Protection in Webhook and Migration Allow-list Default Filter

**Signal:** Critical, preconditions apply. Severe if exploited, but exploitation needs conditions that may not apply to you. (Computed from CISA KEV, EPSS and CVSS; not an editorial verdict.)

## Should you act?

- Not in CISA KEV , but CISA’s SSVC assessment records a public proof-of-concept, so attack code exists.
- EPSS 0.5% , percentile 39: FIRST’s model estimates a 0.5% chance of exploitation activity in the next 30 days, higher than 39% of all scored CVEs (low). EPSS is a probability, not a verdict.
- Needs an account (low (any account)). Exposure depends on who can log in.
- Only applies if your dependency tree includes code.gitea.io/gitea (Go) < 1.26.3, fixed in 1.26.3 . Check your lockfile, including transitive dependencies.

## What it is

Gitea versions up to and including 1.26.2 have incomplete SSRF protection in webhook and migration allow-list filtering.

## Affected packages

- Go `code.gitea.io/gitea` < 1.26.3 → fixed: 1.26.3

## Affected products (CVE record)

- Gitea Gitea Open Source Git Server: <= 1.26.2

## Severity

- Gitea CVSS 3.1: 9.6 `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:N`
- GitHub CVSS 3.1: 9.6 `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:N`

## Exploitation

- CISA KEV: not listed (no confirmed in-the-wild exploitation known to CISA).
- CISA SSVC assessment: exploitation poc , automatable no , technical impact total .
- FIRST EPSS (model of 2026-10-21): 0.46% probability of exploitation activity in the next 30 days; percentile 39.

## Sources

- [GitHub Security Advisory](https://github.com/go-gitea/gitea/security/advisories/GHSA-2r5c-gw76-rh3w)
- [GitHub Pull Request #38173](https://github.com/go-gitea/gitea/pull/38173)
- [GitHub Pull Request #38059](https://github.com/go-gitea/gitea/pull/38059)
- [Gitea v1.26.3 Release](https://github.com/go-gitea/gitea/releases/tag/v1.26.3)
- [Gitea v1.26.4 Release Blog Post](https://blog.gitea.com/release-of-1.26.3-and-1.26.4/)
- [GitHub Advisory GHSA-2r5c-gw76-rh3w](https://github.com/advisories/GHSA-2r5c-gw76-rh3w)
- [CVE.org record CVE-2026-22874](https://www.cve.org/CVERecord?id=CVE-2026-22874)
- [NVD entry CVE-2026-22874](https://nvd.nist.gov/vuln/detail/CVE-2026-22874)

---
Source page: https://erroneo.us/security/cve/CVE-2026-22874/ · Security Digest: https://erroneo.us/security/ · More: https://erroneo.us/llms.txt
