mcp-server-git: git_remote credential redaction bypass via TAB in remote name or prefixed URL exposes host git credentials
GHSA-wvv2-676g-r57j · published 2026-11-27
- Severity
- Medium
- CVSS score
- 5.3
- Chance of exploitation (EPSS)
- No CVE
- Fixed in
- 2026.11.27
Credential Disclosure (CWE-200) breaking the documented redaction security boundary (src/git/README.md:116 and SECURITY.md:63-65). Who is impacted: Developers, CI runners, or agent hosts running mcp-server-git (over stdio or Streamable HTTP, with or without --repository confinement) who configure Git credentials via global/system url. .insteadOf rewrites (the exact setup _REMOTE_URL_KEYS at server.py:1243-1245 is intended to protect), as well as users inspecting shared or vendored repositories whose .git/config contains embedded credentials with leading whitespace or TAB-bearing remote names. …
Upgrade mcp-server-git to 2026.11.27 or later. If you start it from an MCP config with npx or uvx, pin that version so an old cached copy is not used.
1. In git_remote, withhold any parsed match["url"] containing \t as (a valid URL never contains a literal TAB, so its presence means the remote name shifted the column boundary). 2. In redact_url, when _URL_SCHEME.match(url) is None, check whether [A-Za-z][A-Za-z0-9+.-]*:// occurs anywhere in the field (e.g., after leading whitespace or a stray prefix) and withhold the field as rather than returning it verbatim.
| Package | Registry | Affected | Fixed in |
|---|---|---|---|
| mcp-server-git | PyPI | >= 2026.11.4, < 2026.11.27 | 2026.11.27 |
- CriticalPhoenix: Format String Injection in applyChatTemplatearize-phoenix
- CriticalFlowise: Unauthenticated OAuth2 token refresh endpoint returns access tokens — enables token theft for any connected serviceflowise
- CriticalCrawl4AI: authentication bypass vulnerability due to a hardcoded default JWT signing key in the Docker API servercrawl4ai
- CriticalMLflow: Environment variable injection in AI Gateway secrets enables server-side credential exfiltrationmlflow
- CriticalvLLM has RCE In Video Processingvllm
- HighConfig revision hashes could expose password verifiersopenclaw
- Criticalmcp-server-git runs a repo's gpg.program via git_merge and git_branchmcp-server-git
- Criticalgit_add runs submodule filter commands when gitlink mode is not 160000mcp-server-git
- Criticalmcp-server-git: unexpandable sparse index lets submodule filter drivers runmcp-server-git
- Criticalgit: harden_repo ignores core.worktree, so repository-defined filters runmcp-server-git
- Criticalmcp-server-git --repository: checks a bare repo but runs a hidden .git's filtermcp-server-git
- Highgit: index entries under a symlink leak files outside --repositorymcp-server-git
The impact, patch and workaround text comes from the advisory, shortened (published by the MCP reference servers project). Proof-of-concept and reproduction sections and code are left out; the original advisory has them.