CVE-2026-41506 PUBLISHED

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

Assigner: GitHub_M
Reserved: 20.04.2026 Published: 08.05.2026 Updated: 08.05.2026

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.

Metrics

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

Product Status

Vendor go-git
Product go-git
Versions
  • Version < 5.18.0 is affected
  • Version < 6.0.0-alpha.2 is affected

References

Problem Types

  • CWE-522: Insufficiently Protected Credentials CWE