Server-side Request Forgery (SSRF) Affecting gitea.dev/modules/auth/openid package, versions <1.27.0


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.4% (32nd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-GOLANG-GITEADEVMODULESAUTHOPENID-18677178
  • published14 Sept 2026
  • disclosed21 Jul 2026
  • creditRajat

Introduced: 21 Jul 2026

CVE-2026-58314  (opens in a new tab)
CWE-918  (opens in a new tab)

How to fix?

Upgrade gitea.dev/modules/auth/openid to version 1.27.0 or higher.

Overview

Affected versions of this package are vulnerable to Server-side Request Forgery (SSRF) in the handling of outbound HTTP requests for webhooks, repository migration, and OpenID sign-in due to insufficient filtering of non-routable and internal IP address ranges. An attacker can access internal network resources and potentially exfiltrate sensitive information by crafting requests that target internal or otherwise restricted hosts.

Note: This is only exploitable if OpenID sign-in is enabled or if a logged-in user can configure webhooks or initiate repository migrations.

CVSS Base Scores

version 4.0
version 3.1