{"id":"CVE-2026-82402","aliases":["CVE-2026-82402"],"related":[],"kind":"vulnerability","state":"published","title":"Gogs: Open Redirect in /redirect endpoint via backslash bypass in `IsSameSite`","summary":"Gogs is an open source self-hosted Git service. Prior to 0.15.0+dev, an unauthenticated attacker can provide a backslash-containing target to the /redirect endpoint, and similar post-action redirect flows are also affected. internal/urlx/urlx.go IsSameSite validates a normalized form of the target while cmd/gogs/internal/web/web.go getRedirect and other callers use the original value in the Location response. This backslash normalization mismatch lets browsers interpret the Location value as a scheme-relative external URL, allowing links on a trusted Gogs domain to redirect victims to attacker-controlled content for phishing. This vulnerability is fixed in 0.15.0+dev.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Gogs is an open source self-hosted Git service. Prior to 0.15.0+dev, an unauthenticated attacker can provide a backslash-containing target to the /redirect endpoint, and similar post-action redirect flows are also affected. internal/urlx/urlx.go IsSameSite validates a normalized form of the target while cmd/gogs/internal/web/web.go getRedirect and other callers use the original value in the Location response. This backslash normalization mismatch lets browsers interpret the Location value as a scheme-relative external URL, allowing links on a trusted Gogs domain to redirect victims to attacker-controlled content for phishing. This vulnerability is fixed in 0.15.0+dev.","source":"cvelist"}],"published":"2026-10-14T18:49:19.768Z","modified":"2026-10-20T02:17:12.277Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N","score":5.3,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N","score":5.3,"rating":"MEDIUM"}],"cwes":["CWE-601"],"affected":[{"ranges":[{"version":"< 0.15.0+dev","status":"affected"}],"vendor":"gogs","product":"gogs","source":"cvelist"}],"references":[{"url":"https://github.com/gogs/gogs/security/advisories/GHSA-3g28-2vwg-gxq6","tags":["exploit","x-refsource-confirm"],"sources":["cvelist","nvd"]},{"url":"https://github.com/gogs/gogs/pull/8391","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://github.com/gogs/gogs/commit/0aa820e6d572771551871c0b5f5f32dffc565e3e","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://github.com/gogs/gogs/blob/main/CHANGELOG.md#0150dev-main","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2026-10-20T01:58:24.208Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-82402","url":"https://www.cve.org/CVERecord?id=CVE-2026-82402","licence":"CVE Terms of Use","modified":"2026-10-20T01:58:51.683Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-82402","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-82402","licence":"Public domain","modified":"2026-10-20T02:17:12.277Z"}],"updatedAt":"2026-11-25T22:59:44.792Z","epss":{"score":0.00435,"percentile":0.39558,"date":"2026-12-01T12:00:22.000Z"}}