---
id: CVE-2026-22874
title: >-
  Gitea versions up to and including 1.26.2 have incomplete SSRF protection in
  webhook and migration allow-list filtering.
summary: >-
  Gitea versions up to and including 1.26.2 have incomplete SSRF protection in
  webhook and migration allow-list filtering.
severity: critical
cvss: 9.6
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:N'
cwe:
  - CWE-918
published: '2026-07-03'
updated: '2026-07-03'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-22874'
references:
  - url: 'https://blog.gitea.com/release-of-1.26.3-and-1.26.4/'
    label: 88ee5874-cf24-4952-aea0-31affedb7ff2
  - url: 'https://github.com/go-gitea/gitea/pull/38059'
    label: 88ee5874-cf24-4952-aea0-31affedb7ff2
  - url: 'https://github.com/go-gitea/gitea/pull/38173'
    label: 88ee5874-cf24-4952-aea0-31affedb7ff2
  - url: 'https://github.com/go-gitea/gitea/releases/tag/v1.26.3'
    label: 88ee5874-cf24-4952-aea0-31affedb7ff2
  - url: 'https://github.com/go-gitea/gitea/security/advisories/GHSA-2r5c-gw76-rh3w'
    label: 88ee5874-cf24-4952-aea0-31affedb7ff2
tags:
  - nvd
  - exploit-available
epss: 0.00464
epssPercentile: 0.39295
ingestedAt: '2026-07-04T13:56:12.048Z'
exploits:
  github: 2
  githubRepos:
    - 'https://github.com/M8seven/cve-2026-22874-gitea-ssrf-allowlist'
    - 'https://github.com/Eliot-code/CVE-2026-22874-PoC'
  checkedAt: '2026-09-21T15:28:29.346Z'
exploitAvailable: true
---

## Overview

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

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
