medium4.7
CVE-2026-41506
go-git: Credential leak via cross-host redirect in smart HTTP transport
Impact
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.
Affected packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| go | github.com/go-git/go-git/v5 | <= 5.17.2 | 5.18.0 |
| go | github.com/go-git/go-git/v6 | <= 6.0.0-alpha.1 | 6.0.0-alpha.2 |
Affected products
| Vendor | Product | Affected versions |
|---|---|---|
| Go-Git Project | Go-Git | before 5.18.0 Version 6.0.0 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://github.com/advisories/GHSA-3xc5-wrhm-f963
- https://github.com/go-git/go-git/security/advisories/GHSA-3xc5-wrhm-f963
- https://nvd.nist.gov/vuln/detail/CVE-2026-41506
- 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