{"id":"GHSA-j5r2-4c8j-xc3m","revision":"15d0631f4e9546879203d2997def5ba5","records":[{"revision":"15d0631f4e9546879203d2997def5ba5","observedAt":"2026-10-24T13:19:41.952+00:00","statement":{"source":"osv","id":"GHSA-j5r2-4c8j-xc3m","aliases":["CVE-2026-25779","GO-2026-5448"],"title":"Gitea: Open Redirect via redirect_to","description":"### 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","state":0,"publishedAt":"2026-06-17T18:10:46+00:00","modifiedAt":"2026-06-25T23:11:06.6401466+00:00","affected":[{"ecosystem":"Go","name":"github.com/go-gitea/gitea","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"1.26.0"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V4","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"MODERATE"}],"references":["https://github.com/go-gitea/gitea/security/advisories/GHSA-j5r2-4c8j-xc3m","https://github.com/go-gitea/gitea"],"sourceUrl":"https://github.com/advisories/GHSA-j5r2-4c8j-xc3m","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-j5r2-4c8j-xc3m","identifiers":["GHSA-j5r2-4c8j-xc3m","CVE-2026-25779","GO-2026-5448"]},"retained":false,"historicalAffected":[]}],"coverage":[]}