Server-Side Request Forgery (SSRF) in Gitea - CVE-2026-58314
Published: July 14, 2026
Vulnerability details
The vulnerability allows a remote user to disclose sensitive information from internal services via server-side request forgery.
The vulnerability exists due to improper restriction of server-side request forgery in the hostmatcher external builtin when processing webhook delivery or repository migration requests to CGNAT and other non-routable address families. A remote user can configure a crafted webhook target or migration URL to disclose sensitive information from internal services via server-side request forgery.
For webhook delivery, the response status, headers, and body up to 1 MB are stored and rendered to the webhook owner.