CVE-2026-41506 MEDIUM

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

Vendor Go-Git
Product go-git
Weakness CWE-522 · Insufficiently protected credentials
Published May 8, 2026
Last update May 11, 2026

CVSS base score

4.7/10
Attack vector Network
Attack complexity Low
Privileges required None
User interaction Required
Confidentiality Low
Integrity None

CVSS vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:N/A:N

What the vulnerability does

01Description

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.

Key dates

02Disclosure timeline

May 8, 2026 CVE published
May 11, 2026 Record updated