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


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.31% (24th 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-GITEADEVMODULESURI-18600649
  • published10 Aug 2026
  • disclosed5 Aug 2026
  • credittikket1, Letian-aarch64, JebeenLee, JLLeitschuh, pick

Introduced: 5 Aug 2026

NewCVE-2026-34966  (opens in a new tab)
CWE-918  (opens in a new tab)

How to fix?

Upgrade gitea.dev/modules/uri to version 1.27.0 or higher.

Overview

Affected versions of this package are vulnerable to Server-side Request Forgery (SSRF) through the uri.Open and migration asset download paths in modules/uri/uri.go and services/migrations/dump.go. An attacker can make the server fetch internal services, cloud metadata, or local files by supplying a crafted asset download URL or file:// URI during repository migration. The vulnerable code uses raw http.Get() without the host-matching protections applied elsewhere in Gitea, so migration processing can be driven to contact attacker-chosen endpoints and read attacker-specified file paths. This can expose internal network resources, instance metadata, and sensitive configuration data to anyone able to trigger the affected migration flows.

CVSS Base Scores

version 4.0
version 3.1