Insufficiently Protected Credentials Affecting github.com/go-git/go-git/v5/plumbing/transport/http package, versions >=5.3.0 <5.18.0


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.26% (17th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-GOLANG-GITHUBCOMGOGITGOGITV5PLUMBINGTRANSPORTHTTP-16109639
  • published19 Apr 2026
  • disclosed17 Apr 2026
  • creditN0zoM1z0, AyushParkara, Christopher Linke

Introduced: 17 Apr 2026

CVE-2026-41506  (opens in a new tab)
CWE-522  (opens in a new tab)

How to fix?

Upgrade github.com/go-git/go-git/v5/plumbing/transport/http to version 5.18.0 or higher.

Overview

Affected versions of this package are vulnerable to Insufficiently Protected Credentials in the advertisedReferences() function. The headers - including Authorization headers - from an initial /info/refs request are forwarded to redirect targets. An attacker can obtain authentication credentials by controlling a redirect target, and those credentials may be reused on other endpoints or attempted against other repositories owned by the victim. This is only exploitable if the client interacts with untrusted or misconfigured remote servers, or uses HTTP (not HTTPS) connections.

CVSS Base Scores

version 4.0
version 3.1