CVE-2026-41506
Medium
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.
SeverityMedium
CVSS4.7
Exploit probability—
ProductGo-git
PublishedMay 8, 2026
First seenMay 8, 2026
Weakness typeCWE-522CWE-522
How to fix
Update
- go-git_project go-git5.18.0 or later
- github.com/go-git/go-git/v55.18.0 or later
- github.com/go-git/go-git/v66.0.0-alpha.2 or later
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| go-git_project go-git | v < 5.18.0, 6.0.0 | 5.18.0 |
| github.com/go-git/go-git/v5Go | v < 5.18.0 | 5.18.0 |
| github.com/go-git/go-git/v6Go | v < 6.0.0-alpha.2 | 6.0.0-alpha.2 |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
In the Intelligence 360 plan
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.