# CVE-2026-41506: go-git Credential leak via cross-host redirect in smart HTTP transport

- Severity: Medium 4.7 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.47%, higher than 33% of CVEs (2026-11-30)
- Published: 2026-04-17T22:31:35.000Z
- Modified: 2026-11-11T20:10:00.273Z
- Also known as: GHSA-3xc5-wrhm-f963, GO-2026-5105
- Related: CGA-fwfh-x7w7-2jp6
- Weaknesses: CWE-522
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- go-git go-git: < 5.18.0; < 6.0.0-alpha.2
- github.com/go-git/go-git/v5 (Go): before 5.18.0
- github.com/go-git/go-git/v6 (Go): before 6.0.0-alpha.2
- go-git_project go-git: before 5.18.0; 6.0.0

## Every score

- GitHub_M: CVSS:3.1 4.7 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:N/A:N`
- GitHub: CVSS:3.1 4.7 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:N/A:N`
- NVD: CVSS:3.1 7.4 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N`

## References

- <https://github.com/go-git/go-git/security/advisories/GHSA-3xc5-wrhm-f963> (advisory, vendor-advisory, web)
- <https://github.com/go-git/go-git/releases/tag/v5.18.0> (product, release-notes, web)
- <https://github.com/go-git/go-git/releases/tag/v6.0.0-alpha.2> (product, release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-41506> (advisory)
- <https://github.com/go-git/go-git> (package)

## Sources

- CVE List: [CVE-2026-41506](https://www.cve.org/CVERecord?id=CVE-2026-41506), CVE Terms of Use, modified 2026-05-11
- GitHub Advisory Database: [GHSA-3xc5-wrhm-f963](https://github.com/advisories/GHSA-3xc5-wrhm-f963), CC-BY-4.0, modified 2026-09-10
- Go Vulnerability Database: [GO-2026-5105](https://pkg.go.dev/vuln/GO-2026-5105), CC-BY-4.0, modified 2026-08-08
- NVD: [CVE-2026-41506](https://nvd.nist.gov/vuln/detail/CVE-2026-41506), Public domain, modified 2026-11-11

---

Page: https://cve.day/CVE-2026-41506 · Whole record: https://cve.day/CVE-2026-41506.json · Rebuilt by cve.day 2026-11-25T22:59:20.971Z
