CVE-2026-41506
HIGH 7.4CVSS 3.1go-git: Credential leak via cross-host redirect in smart HTTP transport
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.
- Published
- 8 May 2026
- Last modified
- 11 Nov 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-522
- Also known as
- GHSA-3xc5-wrhm-f963GO-2026-5105
- Sources
- NVDJSONOSV GHSA-3xc5-wrhm-f963JSONOSV GO-2026-5105JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.4 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 4.7 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:N/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 4.7 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | go-git_project | go-gitcpe:2.3:a:go-git_project:go-git:*:*:*:*:*:go:*:* |
< 5.18.0 | 5.18.0 |
| NVD | go-git_project | go-gitcpe:2.3:a:go-git_project:go-git:6.0.0:alpha1:*:*:*:go:*:* |
= 6.0.0 | |
| OSV | Go | github.com/go-git/go-git/v5 | < 5.18.0 | 5.18.0 |
| OSV | Go | github.com/go-git/go-git/v6 | < 6.0.0-alpha.2 | 6.0.0-alpha.2 |
References
- https://github.com/go-git/go-git/releases/tag/v5.18.0 · Product, Release Notes, WEB
- https://github.com/go-git/go-git/releases/tag/v6.0.0-alpha.2 · Product, Release Notes, WEB
- https://github.com/go-git/go-git/security/advisories/GHSA-3xc5-wrhm-f963 · Vendor Advisory, WEB, ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2026-41506 · ADVISORY
- https://github.com/go-git/go-git · PACKAGE
History
- 25 Nov 2026 21:02 UTC · NVD: first stored (published 8 May 2026)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 24 Jul 2026)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 17 Apr 2026)