CVE-2026-58418: Gitea: SSRF via HTTP Redirect in Repository Migration
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. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →