CVE-2026-41506
MEDIUM4.7EPSS 0.07%go-git: Credential leak via cross-host redirect in smart HTTP transport
Published: 4/17/2026Modified: 6/2/2026
Also known as:DEBIAN-CVE-2026-41506
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 (4)
- Debian/golang-github-go-git-go-gitfrom 0
- Debian/golang-github-go-git-go-git-v6from 0
- Go/github.com/go-git/go-git/v5from 0, < 5.18.0
- Go/github.com/go-git/go-git/v6from 0, < 6.0.0-alpha.2
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | MEDIUM4.7 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:N/A:N |
References (6)
- ADVISORYhttps://nvd.nist.gov/vuln/detail/CVE-2026-41506
- ADVISORYhttps://security-tracker.debian.org/tracker/CVE-2026-41506
- PATCHhttps://github.com/go-git/go-git
- WEBhttps://github.com/go-git/go-git/releases/tag/v5.18.0
- WEBhttps://github.com/go-git/go-git/releases/tag/v6.0.0-alpha.2
- WEBhttps://github.com/go-git/go-git/security/advisories/GHSA-3xc5-wrhm-f963