Credential disclosure via stale auth callback URL
Published Aug 20, 2026 · Updated Aug 20, 2026
Information disclosure in libgit2 before 1.8.6 and 1.9.0 through 1.9.4 allows remote attackers to leak HTTP credentials via redirects. The built-in HTTP transport in src/libgit2/transports/http.c follows an offsite initial redirect, then passes the original remote URL instead of the redirected host URL into the credential callback after a 401 challenge, so returned credentials are cached for and sent to the redirect target in an Authorization header. Exploitation requires control of a trusted Git host or an open redirect on that host and an application callback that scopes HTTP Basic or token credentials to the original URL.
Summary
What happened
Information disclosure in libgit2 before 1.8.6 and 1.9.0 through 1.9.4 allows remote attackers to leak HTTP credentials via redirects. The built-in HTTP transport in src/libgit2/transports/http.c follows an offsite initial redirect, then passes the original remote URL instead of the redirected host URL into the credential callback after a 401 challenge, so returned credentials are cached for and sent to the redirect target in an Authorization header. Exploitation requires control of a trusted Git host or an open redirect on that host and an application callback that scopes HTTP Basic or token credentials to the original URL.
The record
- CVE
- CVE-2026-53586
- Published
- Aug 20, 2026
- Updated
- Aug 20, 2026
- Vendor
- libgit2
- Product
- libgit2
- Classifications
- CWE-601, CWE-200, CWE-522
- Attack vector
- network
- Privileges
- unauthenticated
Timeline
How it unfolded
- Aug 20, 2026CVE publishedPublication date reported by the CVE source.
- Aug 20, 2026Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=< 1.8.6
- Affected versionversion=>= 1.9.0, < 1.9.5
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
- GHSA-2889-x8f6-mc4x proof of conceptproof of concept · demonstrated
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo