Vulnerability · Published May 8, 2026 · Assigned by GitHub_M

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

Medium 4.7

In plain English

A medium-severity security flaw in go-git from go-git. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 18% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)4.7Medium
Exploit odds (30 days)0.3%top 82.4% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12golang-github-go-git-go-gitno fix listedDEBIAN-CVE-2026-41506
Debian:13golang-github-go-git-go-gitno fix listedDEBIAN-CVE-2026-41506
Debian:14golang-github-go-git-go-git5.19.1-1DEBIAN-CVE-2026-41506
Debian:14golang-github-go-git-go-git-v66.0.0~alpha4-1DEBIAN-CVE-2026-41506
Gogithub.com/go-git/go-git/v55.18.0GHSA-3xc5-wrhm-f963
Gogithub.com/go-git/go-git/v55.18.0GO-2026-5105
Gogithub.com/go-git/go-git/v66.0.0-alpha.2GHSA-3xc5-wrhm-f963
Ubuntu:25.10golang-github-go-git-go-gitno fix listedUBUNTU-CVE-2026-41506
Ubuntu:26.10golang-github-go-git-go-gitno fix listedUBUNTU-CVE-2026-41506

Affected products (as reported)

VendorProductVersions
go-git go-git < 5.18.0< 6.0.0-alpha.2

Weakness: CWE-522 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:N/A:N

References