Evidence · DiggingBeagle record
MCP reference Git server: git_remote URL credential redaction gap
Issue and reproductions showing remote URLs with query, fragment or path-embedded credentials can escape tool-result redaction.
- Published
- Nov 11, 2026
- Source role
- primary disclosure
Evidence record
Issue and reproductions showing remote URLs with query, fragment or path-embedded credentials can escape tool-result redaction.
Claim-level citations (2)
- supportsThe reference Git MCP tool could echo a configured remote credential embedded outside URL userinfo: The git_remote tool promised to hide credentials returned from a repository remote, but its earlier redaction routine primarily masked user:password before the host. A token in a query parameter, URL fragment or path could still appear in serialized tool output. PR 5533 added query and fragment redaction and corrected a malformed-userinfo edge case; path-embedded tokens remained difficult to classify safely without changing unrelated paths. A merged source fix does not prove every deployed MCP package version has been updated.
GitHub issue 5508, documented example for git_remote query/fragment/path redaction; pull request 5533
- supportsThe reference Git MCP tool could echo a configured remote credential embedded outside URL userinfo: The attacker would need access to a repository configured with a credential-bearing remote and a channel that reads or exports the tool result. The report does not document actual credential misuse or an automatically attacker-controlled remote URL. The evidence is bounded by the cited source and test setting. Broader incidence, other environments, and actual production consequences are not established merely by these observations.
Primary disclosure: results, scope and limitations