CVE-2026-22874

Gitea webhook and migration allow-list filtering permits SSRF

Published Jul 3, 2026 CVSS 3.1 · 9.6 Critical EPSS < 1% KEV · Not listed
Description
Gitea versions up to and including 1.26.2 have incomplete SSRF protection in webhook and migration allow-list filtering.

Analysis

AI-generated

Technical impact

A flaw in Gitea versions up to 1.26.2 allows remote attackers to perform server‑side request forgery by submitting webhook or migration requests containing URLs that bypass the allow‑list filter. The application blindly resolves and contacts these URLs, enabling attackers to reach internal addresses, exfiltrate data, or initiate denial‑of‑service conditions. This weakness is classified as CWE‑918.

Affected Systems

Gitea Open Source Git Server installations using any version through 1.26.2 are susceptible. Any deployment that exposes the webhook or migration APIs is at risk until the fix is applied.

Risk and Exploitability

The CVSS score of 9.6 classifies this issue as critical, though the EPSS score of less than 1% indicates a very low likelihood of exploitation in the current landscape. The vulnerability is not listed in the CISA KEV catalog, but that does not diminish the urgency of remediation. The likely attack vector is inferred to involve remote actors sending crafted webhook or migration requests; the server will resolve the supplied URL, perform a request, and may expose internal services or cause service disruption.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Gitea to version 1.26.3 or later for the fixed allow‑list filtering.
  • If an immediate upgrade is not feasible, limit the webhook and migration endpoints to trusted IP ranges or internal networks.
  • Audit webhook configurations to whitelist only trusted URLs and disable the migration API if it is not required.

Generated by OpenCVE AI on August 3, 2026 at 05:27 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-2r5c-gw76-rh3w Gitea: Incomplete SSRF Protection in Webhook and Migration Allow-list Default Filter
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Gitea
Gitea gitea Open Source Git Server
Vendors & Products Gitea
Gitea gitea Open Source Git Server
Type Values Removed Values Added
Description Gitea versions up to and including 1.26.2 have incomplete SSRF protection in webhook and migration allow-list filtering.
Title Gitea webhook and migration allow-list filtering permits SSRF
Weaknesses CWE-918
References
Metrics cvssV3_1

{'score': 9.6, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:N'}

Weaknesses
  • CWE-918

    Server-Side Request Forgery (SSRF)

Sources

Status
PUBLISHED
Assigner
Gitea
Published
Updated
Jul 7, 2026, 5:00 PM
Reserved
Mar 3, 2026, 3:25 AM
Status
Deferred
Published
Jul 3, 2026, 9:16 PM
Modified
Oct 25, 2026, 3:10 PM