go-git: Credential leak via cross-host redirect in smart HTTP transport — CVE-2026-41506
GitHub · GitHub · CVE-2026-41506
ID
CVE-2026-41506
CVE-2026-41506
Date
Updated
Activity
Source
GitHub
GitHub
Vendor
GitHub
GitHub
Threat
medium
medium
CVSS
4.7
4.7
EPSS
0.00047
0.00047
Summary
### Impact `go-git` may leak HTTP authentication credentials when following redirects during smart-HTTP clone and fetch operations. If a remote repository responds to the initial `/info/refs` request with a redirect to a different host, go-git updates the session endpoint to the redirected location and reuses the original authentication for subsequent requests. This can result in the credentials (e.g. Authorization…
Product
go: github.com/go-git/go-git/v5 | go: github.com/go-git/go-git/v6
What to do
General, cautious steps (verify details in the official source):
- Review exposure and plan remediation based on risk and environment.
- Identify affected product versions in your inventory and verify whether you are impacted.
- Apply vendor patches/updates or recommended mitigations as soon as available.
- Read the official advisory for exact affected versions and remediation steps.