CVE-2026-114496: codebase-memory-mcp Git Option Injection Through Base_branch Vulnerability
MODERATECVE-2026-114496 is a MODERATE (CVSS 5.5) git option injection through base_branch vulnerability (CWE-88: Improper Neutralization of Argument Delimiters in a Command ('Argument Injection')) affecting codebase-memory-mcp libraries in the npm ecosystem. The issue involves git option injection through base_branch in detect_changes allows writing a file outside the project. Remediation is available by upgrading affected packages to version 0.9.0.
CVE-2026-114496 at a Glance
Security Impact
CVSS: 5.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N).
How to Fix CVE-2026-114496
To remediate this vulnerability, upgrade all affected codebase-memory-mcp dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install codebase-memory-mcp@0.9.0
pip install codebase-memory-mcp>=0.9.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls codebase-memory-mcp
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2026-114496, inspect your project dependencies using npm:
npm ls codebase-memory-mcp
Analyze the terminal output to locate any version of codebase-memory-mcp in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.9.0), your application is affected.
Note: The npm ls codebase-memory-mcp command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-88: Improper Neutralization of Argument Delimiters in a Command ('Argument Injection'), where the product constructs a string for a command to be executed by a separate component in another control sphere, but it does not properly delimit the intended arguments, options, or switches within that command string. In codebase-memory-mcp, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-114496 Affected codebase-memory-mcp Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
codebase-memory-mcp
|
npm |
< 0.9.0
|
0.9.0
|
|
codebase-memory-mcp
|
PyPI |
< 0.9.0
|
0.9.0
|
References
Frequently Asked Questions
What is CVE-2026-114496?
Which codebase-memory-mcp versions are affected?
What version fixes CVE-2026-114496?
Is codebase-memory-mcp affected?
What is the CVSS score of CVE-2026-114496?
What CWE is associated with CVE-2026-114496?
How can I check npm dependencies for CVE-2026-114496?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-2vj2-hwgx-6f23",
"modified" : "2026-12-01T00:41:55Z",
"published" : "2026-12-01T00:41:55Z",
"aliases" : [ "CVE-2026-114496" ],
"summary" : "codebase-memory-mcp: git option injection through base_branch in detect_changes allows writing a file outside the project",
"details" : "### Summary\n\nBefore 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.\n\n### Impact\n\nA 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.\n\n### Patches\n\nFixed 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.\n\n### Workarounds\n\nUpgrade to a fixed release. codebase-memory-mcp recommends v0.12.1, which was verified to contain this fix.\n\n### Credit\n\nReported privately by Aaron (@aaronjmars). codebase-memory-mcp thanks them for the report and re-verification.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "codebase-memory-mcp"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.9.0"
} ]
} ]
}, {
"package" : {
"ecosystem" : "PyPI",
"name" : "codebase-memory-mcp"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.9.0"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/DeusData/codebase-memory-mcp/security/advisories/GHSA-2vj2-hwgx-6f23"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-114496"
}, {
"type" : "WEB",
"url" : "https://github.com/DeusData/codebase-memory-mcp/pull/941"
}, {
"type" : "WEB",
"url" : "https://github.com/DeusData/codebase-memory-mcp/commit/72e6a14adb50a37a245eb6ec79c9eb31eee48951"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/DeusData/codebase-memory-mcp"
}, {
"type" : "WEB",
"url" : "https://github.com/DeusData/codebase-memory-mcp/releases/tag/v0.9.0"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-88" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2026-12-01T00:41:55Z",
"nvd_published_at" : "2026-11-20T20:17:11Z"
}
}