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
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | golang-github-go-git-go-git | no fix listed | DEBIAN-CVE-2026-41506 |
| Debian:13 | golang-github-go-git-go-git | no fix listed | DEBIAN-CVE-2026-41506 |
| Debian:14 | golang-github-go-git-go-git | 5.19.1-1 | DEBIAN-CVE-2026-41506 |
| Debian:14 | golang-github-go-git-go-git-v6 | 6.0.0~alpha4-1 | DEBIAN-CVE-2026-41506 |
| Go | github.com/go-git/go-git/v5 | 5.18.0 | GHSA-3xc5-wrhm-f963 |
| Go | github.com/go-git/go-git/v5 | 5.18.0 | GO-2026-5105 |
| Go | github.com/go-git/go-git/v6 | 6.0.0-alpha.2 | GHSA-3xc5-wrhm-f963 |
| Ubuntu:25.10 | golang-github-go-git-go-git | no fix listed | UBUNTU-CVE-2026-41506 |
| Ubuntu:26.10 | golang-github-go-git-go-git | no fix listed | UBUNTU-CVE-2026-41506 |
Affected products (as reported)
Weakness: CWE-522 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:N/A:N
References
- https://github.com/go-git/go-git/security/advisories/GHSA-3xc5-wrhm-f963 x_refsource_CONFIRM
- https://github.com/go-git/go-git/releases/tag/v5.18.0 x_refsource_MISC
- https://github.com/go-git/go-git/releases/tag/v6.0.0-alpha.2 x_refsource_MISC