CVE-2026-41506

published 8 May 2026 · updated 11 Nov 2026

go-git Credential leak via cross-host redirect in smart HTTP transport

4.7MediumCVSS 4.7EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in 5.18.0.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
go-git<5.18.0, <6.0.0-alpha.2
go-git_projectgo-git<5.18.0, =6.0.05.18.0

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-41506 severity on Zeptric[![CVE-2026-41506](https://zeptric.io/badge/cve/CVE-2026-41506.svg)](https://zeptric.io/cve/CVE-2026-41506)