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-qf89-h82f-h5r5] - mcp-server-git: git_merge overwrites ignored local files on a merge commit #5671
git_merge promises to refuse a merge that would overwrite an ignored local file (such as .env). It passes --no-overwrite-ignore, but Git does not honor that flag on a non-fast-forward merge, so a merge commit overwrote ignored local files with the merged branch's version.
Fix
Check before merging, by file identity (so case and Unicode spellings on macOS and Windows are caught), whether any path the merge would write is an ignored local file, including the side names Git uses in a file/directory conflict, and refuse if so. Directory-rename detection is turned off for the merge so the paths it writes are predictable.
The fix is in the linked pull request. Reproduction details stay in the advisory until it is published.
changed the title [-][GHSA-qf89-h82f-h5r5][/-][+][GHSA-qf89-h82f-h5r5] - mcp-server-git: git_merge overwrites ignored local files on a merge commit[/+]on Nov 27, 2026
Activity
[-][GHSA-qf89-h82f-h5r5][/-][+][GHSA-qf89-h82f-h5r5] - mcp-server-git: git_merge overwrites ignored local files on a merge commit[/+]cliffhall commentedon Nov 27, 2026
Fixed by #5679.