Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. code.gitea.io/gitea
  4. ›
  5. CVE-2026-58418

CVE-2026-58418: Gitea: SSRF via HTTP Redirect in Repository Migration

July 21, 2026

Gitea 1.25.4 validates the initial URL provided to the repository migration endpoint (POST /api/v1/repos/migrate) and correctly blocks requests to internal addresses like 127.0.0.1 or RFC1918 ranges. However, if the initial URL points to an attacker-controlled server that responds with an HTTP 302 redirect to an internal address, Gitea follows the redirect without performing a second validation. This allows a low-privilege user to reach internal services through Gitea as a proxy.

References

  • blog.gitea.com/release-of-1.26.3-and-1.26.4
  • github.com/advisories/GHSA-rqhx-647v-wx32
  • github.com/go-gitea/gitea/commit/9e84deb969aff5c1115c2984e41250f28c78451f
  • github.com/go-gitea/gitea/pull/38108
  • github.com/go-gitea/gitea/releases/tag/v1.26.4
  • github.com/go-gitea/gitea/security/advisories/GHSA-rqhx-647v-wx32
  • nvd.nist.gov/vuln/detail/CVE-2026-58418

Code Behaviors & Features

Detect and mitigate CVE-2026-58418 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.26.4

Fixed versions

  • 1.26.4

Solution

Upgrade to version 1.26.4 or above.

Impact 6.5 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-918: Server-Side Request Forgery (SSRF)

Source file

go/code.gitea.io/gitea/CVE-2026-58418.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 08 Aug 2026 00:18:51 +0000.