{"id":"CVE-2026-25779","aliases":["CVE-2026-25779","GHSA-j5r2-4c8j-xc3m","GO-2026-5448"],"related":[],"kind":"vulnerability","state":"published","title":"Gitea redirect handling permits open redirects through backslash paths","summary":"Gitea versions up to and including 1.25.4 allow redirect bypasses through raw or percent-encoded backslashes in redirect_to values.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Gitea versions up to and including 1.25.4 allow redirect bypasses through raw or percent-encoded backslashes in redirect_to values.","source":"cvelist"},{"lang":"en","text":"### 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","format":"markdown","source":"ghsa"},{"lang":"en","text":"Gitea: Open Redirect via redirect_to in code.gitea.io/gitea","format":"markdown","source":"go"},{"lang":"es","text":"Las versiones de Gitea hasta la 1.25.4 inclusive permiten eludir redirecciones a través de barras invertidas sin procesar o codificadas por porcentaje en los valores de redirect_to.","source":"nvd"}],"published":"2026-06-17T18:10:46.000Z","modified":"2026-10-25T15:10:00.147Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","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","rating":"MEDIUM"}],"cwes":["CWE-601"],"affected":[{"ranges":[{"type":"semver","introduced":"0","lastAffected":"1.25.4","status":"affected"}],"vendor":"Gitea","product":"Gitea Open Source Git Server","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.26.0"}],"ecosystem":"Go","package":"github.com/go-gitea/gitea","purl":"pkg:golang/github.com/go-gitea/gitea","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.26.0"}],"ecosystem":"Go","package":"code.gitea.io/gitea","purl":"pkg:golang/code.gitea.io/gitea","source":"go"}],"references":[{"url":"https://github.com/go-gitea/gitea/security/advisories/GHSA-j5r2-4c8j-xc3m","tags":["advisory","exploit","vendor-advisory","web"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/go-gitea/gitea/pull/36660","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://github.com/go-gitea/gitea/pull/36716","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://github.com/go-gitea/gitea/releases/tag/v1.25.5","tags":["release-notes"],"sources":["cvelist","nvd"]},{"url":"https://blog.gitea.com/release-of-1.25.5/","tags":["release-notes"],"sources":["cvelist","nvd"]},{"url":"https://github.com/go-gitea/gitea","tags":["package"],"sources":["ghsa"]}],"credits":["quirmz"],"assigner":"Gitea","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2026-07-07T16:16:40.833Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-25779","url":"https://www.cve.org/CVERecord?id=CVE-2026-25779","licence":"CVE Terms of Use","modified":"2026-07-07T16:59:40.949Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-j5r2-4c8j-xc3m","url":"https://github.com/advisories/GHSA-j5r2-4c8j-xc3m","licence":"CC-BY-4.0","modified":"2026-06-25T23:11:06.640Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2026-5448","url":"https://pkg.go.dev/vuln/GO-2026-5448","licence":"CC-BY-4.0","modified":"2026-06-25T23:00:17.505Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-25779","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-25779","licence":"Public domain","modified":"2026-10-25T15:10:00.147Z"}],"updatedAt":"2026-11-25T22:59:27.111Z","epss":{"score":0.00344,"percentile":0.20343,"date":"2026-11-30T12:00:22.000Z"}}