{"id":"CVE-2026-25779","title":"Gitea: Open Redirect via redirect_to","summary":"Gitea: Open Redirect via redirect_to","severity":"medium","cwe":["CWE-601"],"vendor":"go-gitea","product":"github.com/go-gitea/gitea","ecosystem":"go","affected":["github.com/go-gitea/gitea <= 1.25.4"],"patched":["github.com/go-gitea/gitea 1.26.0"],"published":"2026-06-17","updated":"2026-06-17","source":"GHSA","sourceUrl":"https://github.com/advisories/GHSA-j5r2-4c8j-xc3m","references":[{"url":"https://github.com/go-gitea/gitea/security/advisories/GHSA-j5r2-4c8j-xc3m"},{"url":"https://github.com/advisories/GHSA-j5r2-4c8j-xc3m"}],"tags":["ghsa","go"],"ingestedAt":"2026-06-29T14:31:47.222Z","epss":0.00344,"epssPercentile":0.28011,"slug":"CVE-2026-25779","body":"## Overview\n\n### Details\n\nDespite the validation within `urlIsRelative` in `modules/httplib/url.go`, an open redirect is still possible due to usage of directory traversal sequences plus a back-slash in the \"redirect_to\" parameter.\n\n### PoC\n\nWhen a user uses this URL to login:\n\n`https://gitea.com/user/login?redirect_to=/a/../\\example.com`\n\nThey would be redirected to `example.com` upon a successful login to their gitea account.\n\n### Impact\n\n* Phishing: Attackers can use trusted domain links to redirect victims to credential-harvesting pages\n* OAuth/SSO Token Theft: In authentication flows, authorization codes or tokens may leak via redirect\n* Referer Leakage: Sensitive URL parameters may be exposed to attacker domains via the Referer header\n* Cache Poisoning: In deployments with shared caches, malicious redirects may be cached and served to other users\n\n## Affected packages\n\n- `github.com/go-gitea/gitea <= 1.25.4`\n\n## Remediation\n\nUpgrade to a patched release:\n\n- `github.com/go-gitea/gitea 1.26.0`","depth":"sunlit","depthScore":28,"depthScoreParts":{"impact":27.5,"likelihood":0.1,"exploitation":0,"ransomware":0},"changes":[]}