CVE-2026-53586 is a credential scope confusion in libgit2 where the credential callback receives the original repository URL instead of the redirected URL when HTTP redirects occur during authentication. The practical consequence: credentials intended for your trusted Git host get sent to whatever server the redirect chain reaches. This is not merely a bug — it's a fundamental violation of the trust boundary that credential helpers were designed to enforce.
The credential helper protocol assumes the callback receives the definitive authentication destination. libgit2 violated this by passing transport->owner->url (the repository you asked for) instead of transport->server.url (where you're actually connecting). Applications using URL-scoped credential helpers — a security best practice — were inadvertently exposing credentials to untrusted hosts for years without knowing it. The irony: the developers who followed documented security guidance are the most exposed.
The CVSS 6.5 rating is misleading. It treats the prerequisite as "compromised trusted host OR open redirect" — conditions treated as rare. But in enterprise environments using SAML/OAuth, redirects are load-bearing infrastructure. Open redirects on major Git hosting platforms are documented, recurring issues that red teams actively exploit. More critically, personal access tokens stolen this way may remain valid for months or years, unlike session cookies. CVSS has no meaningful lever for credential lifetime, so it underweights this class of vulnerability systematically.
The patch changes which URL variable propagates to the credential callback. Whether this represents genuine remediation or a local fix to a recurring global pattern is the key question. Check the diff: if it only swaps URL variables without re-architecting how auth state tracks redirect context, other code paths likely remain vulnerable. The historical pattern — CVE-2018-17456 in git.git, similar fixes in libgit2 — suggests these patches tend to be locally correct and globally incomplete.
Prioritize this if you use libgit2-based tools (GitHub Desktop, Visual Studio, language bindings) and rely on credential helpers with URL scoping. The deployment reality is brutal: the fix lives upstream, but your exposure depends on when downstream maintainers bump their dependency version. This isn't a theoretical risk — it's a documented architectural flaw with a decade-long lineage across Git implementations.