{"id":"CVE-2026-82402","title":"Gogs is an open source self-hosted Git service","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…","severity":"medium","cwe":["CWE-601"],"published":"2026-10-14","updated":"2026-10-14","sourceUpdated":"2026-10-14T19:17:21.660","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2026-82402","references":[{"url":"https://github.com/gogs/gogs/blob/main/CHANGELOG.md#0150dev-main","label":"security-advisories@github.com"},{"url":"https://github.com/gogs/gogs/commit/0aa820e6d572771551871c0b5f5f32dffc565e3e","label":"security-advisories@github.com"},{"url":"https://github.com/gogs/gogs/pull/8391","label":"security-advisories@github.com"},{"url":"https://github.com/gogs/gogs/security/advisories/GHSA-3g28-2vwg-gxq6","label":"security-advisories@github.com"}],"tags":["nvd","cve.org"],"ingestedAt":"2026-10-14T19:49:57.616Z","vendor":"gogs","product":"gogs","affected":["gogs < 0.15.0+dev"],"cvss":5.3,"cvssVector":"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","cvssSource":"cna","slug":"CVE-2026-82402","body":"## Overview\n\nGogs 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.\n\n## Remediation\n\nRefer to the linked advisories for vendor-supplied fixes and affected version ranges.","depth":"sunlit","depthScore":29,"depthScoreParts":{"impact":29.2,"likelihood":0,"exploitation":0,"ransomware":0},"changes":[]}