{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "cpe": "cpe:2.3:a:go-git_project:go-git:*:*:*:*:*:go:*:*",
            "extracted_events": [
              {
                "introduced": "0"
              },
              {
                "fixed": "5.18.0"
              }
            ],
            "source": [
              "CPE_RANGE",
              "REFERENCES"
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "ea3e7ec9dfc54f577a01afb4dd601c0284604264"
            },
            {
              "fixed": "137874facf9259abed21263b16fae92bae3b4f21"
            }
          ],
          "repo": "https://github.com/go-git/go-git",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-3xc5-wrhm-f963"
  ],
  "database_specific": {
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
      "CWE-522"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/41xxx/CVE-2026-41506.json"
  },
  "details": "go-git is an extensible git implementation library written in pure Go. Prior to versions 5.18.0 and 6.0.0-alpha.2, go-git may leak HTTP authentication credentials when following redirects during smart-HTTP clone and fetch operations. This issue has been patched in versions 5.18.0 and 6.0.0-alpha.2.",
  "id": "CVE-2026-41506",
  "modified": "2026-07-15T01:48:56.181556423Z",
  "published": "2026-05-08T13:43:19.911Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://github.com/go-git/go-git/releases/tag/v5.18.0"
    },
    {
      "type": "WEB",
      "url": "https://github.com/go-git/go-git/releases/tag/v6.0.0-alpha.2"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/41xxx/CVE-2026-41506.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/go-git/go-git/security/advisories/GHSA-3xc5-wrhm-f963"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-41506"
    }
  ],
  "schema_version": "1.8.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:N/A:N",
      "type": "CVSS_V3"
    }
  ],
  "summary": "go-git Credential leak via cross-host redirect in smart HTTP transport"
}