Versions of codebase-memory-mcp before 0.9.0 have a git option injection vulnerability that can write files outside the project
codebase-memory-mcp: git option injection through base_branch in detect_changes allows writing a file outside the project
AI summary
Versions of codebase-memory-mcp before 0.9.0 have a git option injection vulnerability (CVE-2026-114496) that lets the caller write files outside the project. The base_branch parameter of detect_changes does not block a leading hyphen, so a value shaped like a git option is accepted by git. The vulnerability was not demonstrated to achieve arbitrary code execution; it was fixed in 0.9.0, and the official recommendation is v0.12.1.