CVE-2026-114494: codebase-memory-mcp: Stack out-of-bounds write in query_graph via a RETURN or WITH clause with more than 32 items
Published 2026-12-01 · Updated 2026-12-01 · Also known as GHSA-vpgh-g3jg-ggx9
Summary
A stack out-of-bounds write vulnerability exists in the codebase-memory-mcp Cypher parser due to unbounded projection items in RETURN or WITH clauses. All users running affected versions of the codebase-memory-mcp package should upgrade immediately.
Who is affected
Local callers of the query_graph tool can trigger stack memory corruption in the server process by supplying more than 32 projection items, leading to reliable crashes or potentially worse outcomes. This vulnerability is reachable by any caller, including an agent whose queries are influenced by untrusted content.
Exploitability
The vulnerability requires local access with low privileges and no user interaction, scoring a CVSS base score of 7.8 with high impacts on confidentiality, integrity, and availability. The EPSS score is 0.002, and it is not currently listed in the CISA Known Exploited Vulnerabilities catalog.
Remediation
- Upgrade PyPI package codebase-memory-mcp to version 0.9.0 or recommended v0.12.1.
- Upgrade npm package codebase-memory-mcp to version 0.9.0 or recommended v0.12.1.
How to check your project
- Inspect project dependency configuration files (such as package.json or requirements.txt / pyproject.toml) to check if codebase-memory-mcp is in use.
- Verify the installed version of codebase-memory-mcp to confirm whether it falls within the affected range prior to version 0.9.0.
Automated analysis of the published advisory data, generated 2026-12-01. Not human-reviewed; verify against the official advisory. How this works.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | Upgrade |
|---|---|---|---|---|
| PyPI | codebase-memory-mcp |
>= 0, < 0.9.0 | 0.9.0 | python -m pip install 'codebase-memory-mcp>=0.9.0' |
| npm | codebase-memory-mcp |
>= 0, < 0.9.0 | 0.9.0 | npm install [email protected] |
CVSS 3.1 vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
| Attack vector | Local |
|---|---|
| Attack complexity | Low |
| Privileges required | Low |
| User interaction | None |
| Scope | Unchanged |
| Confidentiality | High |
| Integrity | High |
| Availability | High |
FAQ
What causes the out-of-bounds write in codebase-memory-mcp?
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 using a loop bounded by the parsed count.
Which packages and versions are affected?
Both the PyPI and npm packages for codebase-memory-mcp introduced in versions prior to 0.9.0 are affected.
Is there an active exploitation campaign for this vulnerability?
No, CISA Known Exploited Vulnerabilities status is no, meaning active exploitation is not documented.
Original advisory description
References
- WEB https://github.com/DeusData/codebase-memory-mcp/security/advisories/GHSA-vpgh-g3jg-ggx9
- ADVISORY https://nvd.nist.gov/vuln/detail/CVE-2026-114494
- WEB https://github.com/DeusData/codebase-memory-mcp/pull/941
- WEB https://github.com/DeusData/codebase-memory-mcp/commit/e69e0844dbc1c737ebd3d17e97007d0f5cf16beb
- PACKAGE https://github.com/DeusData/codebase-memory-mcp
- WEB https://github.com/DeusData/codebase-memory-mcp/releases/tag/v0.9.0
Source records: GHSA-vpgh-g3jg-ggx9 (OSV.dev) · EPSS by FIRST, 2026-12-01.