VDB
KO

GO-2026-5105

Go-git: Credential leak via cross-host redirect in smart HTTP transport in github.com/go-git/go-git

Quick fix

GO-2026-5105 — github.com/go-git/go-git/v5: upgrade to the fixed version with the command below.

go get github.com/go-git/go-git/v5@v5.18.0

Details

Go-git: Credential leak via cross-host redirect in smart HTTP transport in github.com/go-git/go-git

Are you affected?

Enter the version of the package you're using.

Affected packages

Go / github.com/go-git/go-git/v5
Introduced in: 0 Fixed in: 5.18.0
Fix go get github.com/go-git/go-git/v5@v5.18.0

References