Advisory record · GHSA-3xc5-wrhm-f963

go-git: Credential leak via cross-host redirect in smart HTTP transport

CVSS 4.7 MediumEPSS 0.0026 · 17th percentile

Published by the GitHub Advisory Database at 17 Apr 2026, 22:31 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

PackageEcosystemAffectedFixed in
github.com/go-git/go-git/v5Go<5.18.05.18.0
github.com/go-git/go-git/v6Go<6.0.0-alpha.26.0.0-alpha.2
Identifiers
GHSA-3xc5-wrhm-f963 · CVE-2026-41506 · GO-2026-5105
Weakness (CWE)
CWE-522
Published
17 Apr 2026
Updated
10 Sept 2026

Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

Go module github.com/go-git/go-git/v5 before 5.18.0 and github.com/go-git/go-git/v6 before 6.0.0-alpha.2 can leak HTTP authentication credentials during smart-HTTP clone and fetch when the remote redirects the initial request to a different host. An attacker who controls or influences that redirect target could capture the credentials and reuse them, depending on their scope. Upgrade to v5.18.0 or v6.0.0-alpha.2; the source says the risk mainly affects untrusted or misconfigured servers and unsecured HTTP.

Written 1 Nov 2026.

Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

Severity and exploitation

ScoreRatingCVSSVectorSource
4.7 Medium 3.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:N/A:N CNA (GitHub_M)
  • CISA KEV Not listed.
  • EPSS 0.0026, the 17th percentile, on 12 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

Timeline

  1. 8 May 2026, 14:16 UTC Confirmed by NVD
  2. 31 Oct 2026, 14:14 UTC First seen by agentprime
  3. 31 Oct 2026, 14:14 UTC Confirmed by OSV

Sources

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.