{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "source": "REFERENCES"
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "0aa820e6d572771551871c0b5f5f32dffc565e3e"
            }
          ],
          "repo": "https://github.com/gogs/gogs",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-3g28-2vwg-gxq6"
  ],
  "database_specific": {
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
      "CWE-601"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/82xxx/CVE-2026-82402.json",
    "unresolved_ranges": [
      {
        "extracted_events": [
          {
            "introduced": "\u003c 0.15.0+dev"
          },
          {
            "last_affected": "\u003c 0.15.0+dev"
          }
        ],
        "source": "AFFECTED_FIELD"
      }
    ]
  },
  "details": "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.",
  "id": "CVE-2026-82402",
  "modified": "2026-10-16T02:31:18.541735679Z",
  "published": "2026-10-14T18:49:19.768Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://github.com/gogs/gogs/blob/main/CHANGELOG.md#0150dev-main"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/82xxx/CVE-2026-82402.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/gogs/gogs/security/advisories/GHSA-3g28-2vwg-gxq6"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-82402"
    },
    {
      "type": "FIX",
      "url": "https://github.com/gogs/gogs/commit/0aa820e6d572771551871c0b5f5f32dffc565e3e"
    },
    {
      "type": "FIX",
      "url": "https://github.com/gogs/gogs/pull/8391"
    }
  ],
  "schema_version": "1.9.0",
  "severity": [
    {
      "score": "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",
      "type": "CVSS_V4"
    }
  ],
  "summary": "Gogs: Open Redirect in /redirect endpoint via backslash bypass in `IsSameSite`"
}