CVE-2026-114496 is a medium-severity (CVSS 5.5) CWE-88 vulnerability in codebase-memory-mcp. A fix is available for codebase-memory-mcp — see the affected versions and patch details below.
codebase-memory-mcp: git option injection through base_branch in detect_changes allows writing a file outside the project
Exploitation Status
No confirmed exploitation observed yet
- CISA’s own triage has not observed active exploitation or public proof-of-concept code for this CVE as of its last assessment.
Exploitation and automatability from CISA’s SSVC triage for CVE-2026-114496.
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
How urgent is this, really
Where this sits among everything scored
Real-World Exposure
codebase-memory-mcp🐍codebase-memory-mcpReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects npm, PyPI packages — download data is not available via public APIs for these ecosystems.
Description
Summary
Before 0.9.0 the base_branch argument of the detect_changes tool was checked for shell metacharacters but not for a leading dash. The value was placed in the revision position of a git diff invocation, so a value shaped like a git option was honoured by git. An option such as --output=<path> made git write its diff to a caller-chosen file.
Impact
A caller of detect_changes can create or overwrite a file with Git diff output at a caller-chosen path, subject to the server process's permissions. This is the demonstrated integrity impact; arbitrary code execution was not demonstrated.
Patches
Fixed in stable 0.9.0. Option-like values are rejected before Git is invoked. In the verified v0.12.1 release, both since and its base_branch alias pass through the leading-dash check, and the regression verifies rejection.
Workarounds
Upgrade to a fixed release. codebase-memory-mcp recommends v0.12.1, which was verified to contain this fix.
Credit
Reported privately by Aaron (@aaronjmars). codebase-memory-mcp thanks them for the report and re-verification.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| 📦npm | codebase-memory-mcp | all versions | 0.9.0npm install codebase-memory-mcp@0.9.0 |
| 🐍PyPI | codebase-memory-mcp | all versions | 0.9.0pip install --upgrade 'codebase-memory-mcp==0.9.0' |
Detection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for codebase-memory-mcp, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update codebase-memory-mcp to 0.9.0 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2026-114496 is resolved across your whole dependency graph.
Workarounds
If you can't upgrade right away: gate or disable the affected feature, validate untrusted input at the boundary, and avoid passing attacker-controlled data into the vulnerable path. O3's runtime protection blocks exploitation in production as an interim safeguard until the upgrade lands.
Frequently Asked Questions
Is CVE-2026-114496 in your dependencies?
Find it across npm, PyPI, including transitive dependencies.