Server-side Request Forgery (SSRF) Affecting code.gitea.io/gitea/services/migrations package, versions <1.27.0


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.3% (23rd 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-CODEGITEAIOGITEASERVICESMIGRATIONS-18752141
  • published13 Aug 2026
  • disclosed21 Jul 2026
  • creditTikket, Letian-aarch64, JebeenLee, Jonathan Leitschuh, pick, kdalal-vc

Introduced: 21 Jul 2026

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

How to fix?

Upgrade code.gitea.io/gitea/services/migrations to version 1.27.0 or higher.

Overview

code.gitea.io/gitea/services/migrations is a painless self-hosted Git Service.

Affected versions of this package are vulnerable to Server-side Request Forgery (SSRF) in the Open function, which uses raw http.Get() and os.Open without proper host or scheme validation. An attacker can access internal network resources, cloud metadata endpoints, or read arbitrary local files by supplying crafted URLs such as http://169.254.169.254 or file:// schemes.

Note: This is only exploitable if the attacker has migration permissions or if a custom OAuth2 source is configured by an administrator.

CVSS Base Scores

version 4.0
version 3.1