Server-Side Request Forgery (SSRF) in Gitea - CVE-2026-22874

 

Server-Side Request Forgery (SSRF) in Gitea - CVE-2026-22874

Published: June 22, 2026


Vulnerability identifier: #VU135011
CSH Severity: Medium
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:N/SC:L/SI:N/SA:N/E:U/U:Green
CVE-ID: CVE-2026-22874
CWE-ID: CWE-918
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: The Gitea Authors
Affected software:
Gitea

Detailed vulnerability description

The vulnerability allows a remote user to disclose sensitive information from internal services via server-side request forgery.

The vulnerability exists due to server-side request forgery in the HostMatchList.checkIP allow-list filter when processing webhook delivery or repository migration destinations. A remote user can send a request to a specially crafted internal destination to disclose sensitive information from internal services via server-side request forgery.

Webhook delivery captures the response status, headers, and up to 1 MiB of response body and renders them in the webhook history UI, making the SSRF non-blind.


How to mitigate CVE-2026-22874

Install security update from vendor's website.

Sources