You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[GHSA-wvv2-676g-r57j] - mcp-server-git: git_remote credential redaction bypassed by a tab in a remote name or a prefixed URL #5666
Server:mcp-server-git · Severity: medium (verified) · Milestone: v2.6.0
Problem
git_remote redacts credentials from remote URLs before returning them. A remote whose name contains a tab shifted the parsed columns, and a URL value with leading whitespace was not recognised as a URL, so in both cases the URL, including credentials (for example a token from the user's global insteadOf rewrite), was returned unredacted.
Fix
Match each git remote -v line to the configured remote names instead of splitting on the first tab, and withhold any value that contains a URL anywhere rather than only at its start.
The fix is in the linked pull request. Reproduction details stay in the advisory until it is published.
changed the title [-][GHSA-wvv2-676g-r57j][/-][+][GHSA-wvv2-676g-r57j] - mcp-server-git: git_remote credential redaction bypassed by a tab in a remote name or a prefixed URL[/+]on Nov 27, 2026
Activity
[-][GHSA-wvv2-676g-r57j][/-][+][GHSA-wvv2-676g-r57j] - mcp-server-git: git_remote credential redaction bypassed by a tab in a remote name or a prefixed URL[/+]cliffhall commentedon Nov 27, 2026
Fixed by #5674.