{"id":"CVE-2026-82402","revision":"753dbd404dd44196b9be0edc9cda67b7","records":[{"revision":"753dbd404dd44196b9be0edc9cda67b7","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2026-82402","aliases":[],"title":"Gogs: Open Redirect in /redirect endpoint via backslash bypass in `IsSameSite`","description":"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.","state":0,"publishedAt":"2026-10-14T18:49:19.768+00:00","modifiedAt":"2026-10-20T01:58:51.683+00:00","affected":[{"ecosystem":"Vendor product","name":"gogs","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"gogs\",\n                    \"product\": \"gogs\",\n                    \"versions\": [\n                        {\n                            \"version\": \"< 0.15.0+dev\",\n                            \"status\": \"affected\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"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,"severity":"MEDIUM"}],"references":["https://github.com/gogs/gogs/security/advisories/GHSA-3g28-2vwg-gxq6","https://github.com/gogs/gogs/pull/8391","https://github.com/gogs/gogs/commit/0aa820e6d572771551871c0b5f5f32dffc565e3e","https://github.com/gogs/gogs/blob/main/CHANGELOG.md#0150dev-main"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-82402","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-82402","identifiers":["CVE-2026-82402"]},"retained":false,"historicalAffected":[]}],"coverage":[]}