Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. codebase-memory-mcp
  4. ›
  5. CVE-2026-114496

CVE-2026-114496: codebase-memory-mcp: git option injection through base_branch in detect_changes allows writing a file outside the project

December 1, 2026

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.

References

  • github.com/DeusData/codebase-memory-mcp/commit/72e6a14adb50a37a245eb6ec79c9eb31eee48951
  • github.com/DeusData/codebase-memory-mcp/pull/941
  • github.com/DeusData/codebase-memory-mcp/releases/tag/v0.9.0
  • github.com/DeusData/codebase-memory-mcp/security/advisories/GHSA-2vj2-hwgx-6f23
  • github.com/advisories/GHSA-2vj2-hwgx-6f23
  • nvd.nist.gov/vuln/detail/CVE-2026-114496

Code Behaviors & Features

Detect and mitigate CVE-2026-114496 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 0.9.0

Fixed versions

  • 0.9.0

Solution

Upgrade to version 0.9.0 or above.

Impact 5.5 MEDIUM

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-88: Improper Neutralization of Argument Delimiters in a Command ('Argument Injection')

Source file

npm/codebase-memory-mcp/CVE-2026-114496.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 02 Dec 2026 12:16:25 +0000.