Skip to content

[GHSA-wvv2-676g-r57j] - mcp-server-git: git_remote credential redaction bypassed by a tab in a remote name or a prefixed URL #5666

Done

Description

@cliffhall

Advisory: GHSA-wvv2-676g-r57j

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.

Activity

  1. added
    bug
    server-git
    on Nov 27, 2026
  2. self-assigned this
    on Nov 27, 2026
  3. added this to the v2.6.0 milestone on Nov 27, 2026
  4. 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
  5. cliffhall commented on Nov 27, 2026

    @cliffhall
    MemberAuthor

    Fixed by #5674.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugserver-gitv2

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions