{"id":"CVE-2026-82402","state":"PUBLISHED","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.","publishedAt":"2026-10-14T18:49:19.768Z","updatedAt":"2026-10-20T01:58:51.683Z","severity":{"score":5.3,"label":"Medium","version":"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","source":"GitHub_M"},"assigner":"GitHub_M","products":["gogs gogs"],"affected":[{"vendor":"gogs","product":"gogs","versions":[{"version":"< 0.15.0+dev","status":"affected"}]}],"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"],"weaknesses":["CWE-601"],"ingestedAt":"2026-10-29T20:13:15.269Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/82xxx/CVE-2026-82402.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-82402","state":"PUBLISHED","datePublished":"2026-10-14T18:49:19.768Z","dateUpdated":"2026-10-20T01:58:51.683Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2026-08-28T22:00:43.512Z"},"containers":{"cna":{"title":"Gogs: Open Redirect in /redirect endpoint via backslash bypass in `IsSameSite`","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"gogs","product":"gogs","versions":[{"version":"< 0.15.0+dev","status":"affected"}]}],"references":[{"url":"https://github.com/gogs/gogs/security/advisories/GHSA-3g28-2vwg-gxq6","name":"https://github.com/gogs/gogs/security/advisories/GHSA-3g28-2vwg-gxq6","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/gogs/gogs/pull/8391","name":"https://github.com/gogs/gogs/pull/8391","tags":["x_refsource_MISC"]},{"url":"https://github.com/gogs/gogs/commit/0aa820e6d572771551871c0b5f5f32dffc565e3e","name":"https://github.com/gogs/gogs/commit/0aa820e6d572771551871c0b5f5f32dffc565e3e","tags":["x_refsource_MISC"]},{"url":"https://github.com/gogs/gogs/blob/main/CHANGELOG.md#0150dev-main","name":"https://github.com/gogs/gogs/blob/main/CHANGELOG.md#0150dev-main","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV4_0":{"attackVector":"NETWORK","attackComplexity":"LOW","attackRequirements":"NONE","privilegesRequired":"NONE","userInteraction":"PASSIVE","vulnConfidentialityImpact":"NONE","vulnIntegrityImpact":"NONE","vulnAvailabilityImpact":"NONE","subConfidentialityImpact":"LOW","subIntegrityImpact":"LOW","subAvailabilityImpact":"NONE","baseScore":5.3,"baseSeverity":"MEDIUM","vectorString":"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","version":"4.0"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-601","lang":"en","description":"CWE-601: URL Redirection to Untrusted Site ('Open Redirect')","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2026-10-14T18:49:19.768Z"},"source":{"advisory":"GHSA-3g28-2vwg-gxq6","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","references":[{"url":"https://github.com/gogs/gogs/security/advisories/GHSA-3g28-2vwg-gxq6","tags":["exploit"]}],"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-10-20T01:58:24.208606Z","id":"CVE-2026-82402","options":[{"Exploitation":"poc"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-10-20T01:58:51.683Z"}}]}}}