Here's a note about it in the Git mirror repo:
Malicious URLs may cause Git to present stored credentials to the wrong server - https://github.com/git/git/security/advisories/GHSA-qm7j-c96...
..And the commit that fixed it:
https://github.com/git/git/commit/9a6bbee8006c24b46a85d29e7b...