CVE-2026-114494: codebase-memory-mcp Stack Out-of-bounds Write Vulnerability

HIGH
Advisory Identifier: GHSA-vpgh-g3jg-ggx9
CVSS 7.8
CWE-121 CWE-787
Published
Advisory Summary

CVE-2026-114494 is a HIGH (CVSS 7.8) stack out-of-bounds write vulnerability (CWE-121: Stack-based Buffer Overflow) affecting codebase-memory-mcp libraries in the npm ecosystem. The issue involves stack out-of-bounds write in query_graph via a return or with clause with more than 32 items. Remediation is available by upgrading affected packages to version 0.9.0.

CVE-2026-114494 at a Glance

CVE Identifier CVE-2026-114494
GHSA Identifier GHSA-vpgh-g3jg-ggx9
Severity HIGH
CVSS v3.1 Base Score 7.8
CWE Classification CWE-121: Stack-based Buffer Overflow
Affected Product codebase-memory-mcp
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 7.8

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:H/I:H/A:H).

Attack Vector Local (AV:L)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (A:H)

How to Fix CVE-2026-114494

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.

codebase-memory-mcp fixed: 0.9.0
npm install codebase-memory-mcp@0.9.0
codebase-memory-mcp fixed: 0.9.0
pip install codebase-memory-mcp>=0.9.0
Verify Direct and Transitive Dependencies

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-114494, 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-121: Stack-based Buffer Overflow, where a stack-based buffer overflow condition is a condition where the buffer being overwritten is allocated on the stack (i.e., is a local variable or, rarely, a parameter to a function). 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

### Summary Before 0.9.0 the Cypher parser did not bound the number of projection items in a `RETURN` or `WITH` clause, while the projection executors indexed fixed 32-element stack arrays with a loop bounded by the parsed count. A query with more than 32 projection items written through the `query_graph` tool wrote past those arrays. A related path read uninitialized stack slots when building result columns, even when no node matched. ### Impact Stack memory corruption in the server process from a single tool argument: a reliable crash, and potentially worse depending on layout. Reachable by any caller of `query_graph`, including an agent whose queries are influenced by untrusted content. ### Patches Fixed in stable 0.9.0. Projection counts are checked before execution. In the verified v0.12.1 release, RETURN is bounded to 32 items and WITH to 16 items; oversized clauses are rejected rather than silently truncated. Both projection-limit regressions passed in the release-source verification. ### Workarounds Upgrade to a fixed release. codebase-memory-mcp recommends v0.12.1, which has been verified to contain this fix. ### Credit Reported privately by Aaron (@aaronjmars). codebase-memory-mcpthanks them for the thorough report and re-verification.

CVE-2026-114494 Affected codebase-memory-mcp Versions

2 component(s)
Fixed Versions:
0.9.0
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-114494?
CVE-2026-114494 is a security vulnerability in codebase-memory-mcp involving Stack out-of-bounds write in query_graph via a RETURN or WITH clause with more than 32 items under CWE-121: Stack-based Buffer Overflow.
Which codebase-memory-mcp versions are affected?
Affected versions include releases prior to 0.9.0 across affected packages: codebase-memory-mcp.
What version fixes CVE-2026-114494?
Upgrading to 0.9.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is codebase-memory-mcp affected?
Yes, codebase-memory-mcp is affected in releases prior to 0.9.0. Upgrade your dependency to 0.9.0 or later.
What is the CVSS score of CVE-2026-114494?
CVE-2026-114494 has a CVSS v3.1 base score of 7.8 (HIGH) with vector string CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2026-114494?
CVE-2026-114494 is classified under CWE-121: Stack-based Buffer Overflow (A stack-based buffer overflow condition is a condition where the buffer being overwritten is allocated on the stack (i.e., is a local variable or, rarely, a parameter to a function).).
How can I check npm dependencies for CVE-2026-114494?
Run the dependency tree command: 'npm ls codebase-memory-mcp'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-vpgh-g3jg-ggx9",
  "modified" : "2026-12-01T00:37:12Z",
  "published" : "2026-12-01T00:37:12Z",
  "aliases" : [ "CVE-2026-114494" ],
  "summary" : "codebase-memory-mcp: Stack out-of-bounds write in query_graph via a RETURN or WITH clause with more than 32 items",
  "details" : "### Summary\n\nBefore 0.9.0 the Cypher parser did not bound the number of projection items in a `RETURN` or `WITH` clause, while the projection executors indexed fixed 32-element stack arrays with a loop bounded by the parsed count. A query with more than 32 projection items written through the `query_graph` tool wrote past those arrays. A related path read uninitialized stack slots when building result columns, even when no node matched.\n\n### Impact\n\nStack memory corruption in the server process from a single tool argument: a reliable crash, and potentially worse depending on layout. Reachable by any caller of `query_graph`, including an agent whose queries are influenced by untrusted content.\n\n### Patches\n\nFixed in stable 0.9.0. Projection counts are checked before execution. In the verified v0.12.1 release, RETURN is bounded to 32 items and WITH to 16 items; oversized clauses are rejected rather than silently truncated. Both projection-limit regressions passed in the release-source verification.\n\n### Workarounds\n\nUpgrade to a fixed release. codebase-memory-mcp recommends v0.12.1, which has been verified to contain this fix.\n\n### Credit\n\nReported privately by Aaron (@aaronjmars). codebase-memory-mcpthanks them for the thorough report and re-verification.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
  } ],
  "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-vpgh-g3jg-ggx9"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-114494"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/DeusData/codebase-memory-mcp/pull/941"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/DeusData/codebase-memory-mcp/commit/e69e0844dbc1c737ebd3d17e97007d0f5cf16beb"
  }, {
    "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-121", "CWE-787" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-12-01T00:37:12Z",
    "nvd_published_at" : "2026-11-20T20:17:10Z"
  }
}