What’s Vulnerable › Vulnerabilities
CVE-2026-41506: go-git Credential leak via cross-host redirect in smart HTTP transport
- Severity: high (CVSS 7.4 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.3% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2026-05-08 · updated 2026-06-17
- Weakness: CWE-522
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.
Affected products
- go-git: before 5.18.0; 6.0.0-alpha1 — fixed in 5.18.0
How to fix
Upgrade to a fixed version: go-git 5.18.0. Check the vendor advisory for mitigations.
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/go-git/go-git/security/advisories/GHSA-3xc5-wrhm-f963
Get alerted when CVE-2026-41506 or the next vulnerability affects your stack