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

Published May 8, 2026
·
Updated

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 Software

3 affected components
golang/github.com/go-git/go-git<5.18.0, <6.0.0-alpha.2
go-git project Go-git Go<5.18.0
go-git project Go-git Go=6.0.0-alpha1

Event History

May 8, 2026
CVE Published
via MITRE·01:43 PM
Data Sourced
via MITRE·01:43 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·02:16 PM
DescriptionSeverityWeaknessAffected Software
Jul 9, 58331
Event
via NVD·01:33 PM

Frequently Asked Questions

1

What is the severity of CVE-2026-41506?

CVE-2026-41506 is classified as a high severity vulnerability due to the potential for credential leakage.

2

How do I fix CVE-2026-41506?

To fix CVE-2026-41506, upgrade go-git to version 5.18.0 or 6.0.0-alpha.2 or later.

3

What are the impacts of CVE-2026-41506?

CVE-2026-41506 can lead to unauthorized access if HTTP authentication credentials are leaked during redirects.

4

What versions of go-git are affected by CVE-2026-41506?

CVE-2026-41506 affects all versions of go-git prior to 5.18.0 and 6.0.0-alpha.2.

5

How does CVE-2026-41506 occur in go-git?

CVE-2026-41506 occurs when go-git follows HTTP redirects during clone and fetch operations, potentially leaking credentials.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203