Live threats

All CVEs / Go-git Project

CVE-2026-41506Go-git Project Go-git

High 7.4 No auth needed

Priority
59
CVSS 3.1
7.4
EPSS
—
Auth required
No
Published
May 8, 2026
Updated
Nov 11, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-522
SSVC (CISA)
Exploitation: none · Automatable: no · Technical impact: partial
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Go-git.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Go github.com/go-git/go-git/v5 < 5.18.0 5.18.0 go get github.com/go-git/go-git/v5@v5.18.0
Go github.com/go-git/go-git/v5 < 5.18.0 5.18.0 go get github.com/go-git/go-git/v5@v5.18.0
Go github.com/go-git/go-git/v6 < 6.0.0-alpha.2 6.0.0-alpha.2 go get github.com/go-git/go-git/v6@v6.0.0-alpha.2

Per OSV / GitHub Advisories (GHSA-3xc5-wrhm-f963, GO-2026-5105). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
go-git_projectgo-git< 5.18.0
go-git_projectgo-git6.0.0

Official advisories

Also: SUSE (+20)

Vendor, CERT and distribution advisories that name this CVE. Original titles.

Official sources

References

Links published by the sources. Open them with care.