Skip to content
Heist/ feed
Back to feed
Medium

go-git Credential leak via cross-host redirect in smart HTTP transport

Type: advisorySources: OSV

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2026-41506
Confirmed fixed CVEs
Not specified
Updated in this feed
6 Nov 2026, 00:49 UTC · Revision 1

Source evidence

go-git Credential leak via cross-host redirect in smart HTTP transport

core-osv · Original source

Published 8 May 2026, 13:43 UTC

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.

osv:CVE-2026-41506
Complete source record
{
  "id": "bbb9a4e70c2c49287a36a373acca97963057699c9e3b1195971edb7bb84f7cb8",
  "url": "https://osv.dev/vulnerability/CVE-2026-41506",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "go-git Credential leak via cross-host redirect in smart HTTP transport",
    "summary": "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.",
    "evidence": "osv:CVE-2026-41506",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2026-41506",
      "aliases": [
        "CVE-2026-41506",
        "GHSA-3xc5-wrhm-f963",
        "GO-2026-5105"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:N/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/go-git/go-git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "ea3e7ec9dfc54f577a01afb4dd601c0284604264"
                },
                {
                  "fixed": "137874facf9259abed21263b16fae92bae3b4f21"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:go-git_project:go-git:*:*:*:*:*:go:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "5.18.0"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "range": [
                      {
                        "fixed": "ea3e7ec9dfc54f577a01afb4dd601c0284604264"
                      }
                    ],
                    "source": "REFERENCES_TAG",
                    "original_tag": "v5.18.0"
                  },
                  {
                    "range": [
                      {
                        "fixed": "137874facf9259abed21263b16fae92bae3b4f21"
                      }
                    ],
                    "source": "REFERENCES_TAG",
                    "original_tag": "v6.0.0-alpha.2"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v5.17.2",
            "v6.0.0-alpha.1",
            "v5.17.1",
            "v5.17.0",
            "v5.16.5",
            "v5.16.4",
            "v5.16.3",
            "v5.16.2",
            "v5.16.1",
            "v5.16.0",
            "v5.15.0",
            "v5.14.0",
            "v5.13.2",
            "v5.13.1",
            "v5.13.0",
            "v5.12.0",
            "v5.11.0",
            "v5.10.1",
            "v5.9.0",
            "v5.10.0",
            "v5.8.1",
            "v5.8.0",
            "v5.7.0",
            "v5.6.1",
            "v5.5.2",
            "v5.6.0",
            "v5.5.1",
            "v5.5.0",
            "v5.4.2",
            "v5.4.1",
            "v5.4.0",
            "v5.3.0",
            "v5.2.0",
            "v5.1.0",
            "v5.0.0",
            "v4.13.1",
            "v4.13.0",
            "v4.12.0",
            "v4.11.0",
            "v4.10.0",
            "v4.9.1",
            "v4.7.1",
            "v4.9.0",
            "v4.8.1",
            "v4.8.0",
            "v4.7.0",
            "v4.6.0",
            "v4.5.0",
            "v4.4.1",
            "v4.4.0",
            "v4.3.1",
            "v4.3.0",
            "v4.2.1",
            "v4.2.0",
            "v4.1.1",
            "v4.1.0",
            "v4.0.0",
            "v4.0.0-rc15",
            "v4.0.0-rc14",
            "v4.0.0-rc13",
            "v4.0.0-rc12",
            "v4.0.0-rc11",
            "v4.0.0-rc10",
            "v4.0.0-rc9",
            "v4.0.0-rc8",
            "v4.0.0-rc7",
            "v4.0.0-rc6",
            "v4.0.0-rc5",
            "v4.0.0-rc4",
            "v4.0.0-rc3",
            "v4.0.0-rc2",
            "v4.0.0-rc1",
            "v3.1.1",
            "v3.1.0",
            "v3.0.4",
            "v3.0.3",
            "v3.0.2",
            "v3.0.1",
            "v3.0.0",
            "v2.2.0",
            "v2.1.3",
            "v2.1.2",
            "v2.1.1",
            "v2.1.0",
            "v2.0.0",
            "v1.0.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-41506.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:45.830630872Z",
      "provider": "osv",
      "references": [
        "https://github.com/go-git/go-git/releases/tag/v5.18.0",
        "https://github.com/go-git/go-git/releases/tag/v6.0.0-alpha.2",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/41xxx/CVE-2026-41506.json",
        "https://github.com/go-git/go-git/security/advisories/GHSA-3xc5-wrhm-f963",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-41506"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-522"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/41xxx/CVE-2026-41506.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-41506",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 513620,
  "published_at": "2026-05-08T13:43:19.911+00:00"
}