CVE-2026-114495: codebase-memory-mcp Heap Buffer Overflow On Artifact Vulnerability
HIGHCVE-2026-114495 is a HIGH (CVSS 7.8) heap buffer overflow on artifact vulnerability (CWE-190: Integer Overflow or Wraparound) affecting codebase-memory-mcp libraries in the npm ecosystem. The issue involves heap buffer overflow on artifact import via int-truncated decompression capacity. Remediation is available by upgrading affected packages to version 0.9.0.
CVE-2026-114495 at a Glance
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:N/UI:R/S:U/C:H/I:H/A:H).
How to Fix CVE-2026-114495
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-114495, 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-190: Integer Overflow or Wraparound, where the product performs a calculation that can produce an integer overflow or wraparound when the logic assumes that the resulting value will always be larger than the original value. this occurs when an integer value is incremented to a value that is too large to store in the associated representation. when this occurs, the value may become a very small or negative number. 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-114495 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-114495?
Which codebase-memory-mcp versions are affected?
What version fixes CVE-2026-114495?
Is codebase-memory-mcp affected?
What is the CVSS score of CVE-2026-114495?
What CWE is associated with CVE-2026-114495?
How can I check npm dependencies for CVE-2026-114495?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-8xwq-xv2x-853r",
"modified" : "2026-12-01T00:39:56Z",
"published" : "2026-12-01T00:39:56Z",
"aliases" : [ "CVE-2026-114495" ],
"summary" : "codebase-memory-mcp: Heap buffer overflow on artifact import via int-truncated decompression capacity",
"details" : "### Summary\n\nWhen a repository contains a `.codebase-memory/` artifact, indexing it imports the artifact automatically. Before 0.9.0 the decompression buffer was allocated with the 64-bit `original_size` from the attacker-controlled `artifact.json`, but the capacity handed to the Zstandard decompressor was truncated to `int`. A size with bit 31 set became negative, was sign-extended back to a huge `size_t`, and the decompressor wrote the frame's full content past the real allocation.\n\n### Impact\n\nIndexing a malicious repository could corrupt heap memory with attacker-controlled bytes: a reliable crash and potentially code execution. No extra interaction beyond indexing the repository is needed.\n\n### Patches\n\nFixed in stable 0.9.0. The import path takes the decompressed size from the Zstandard frame header, validates it against the metadata and a size cap, and uses the same size_t capacity for allocation and decompression. The decoded length is checked. codebase-memory-mcp has verified this correction in published v0.12.1, together with the size-mismatch regression. That regression is not a direct multi-gigabyte reproduction; this advisory does not claim that all decompression resource-exhaustion cases are eliminated.\n\n### Workarounds\n\nUpgrade to a fixed release; the codebase-memory-mcp verified recommendation is v0.12.1. On affected versions, avoid indexing untrusted repositories that contain a .codebase-memory/ artifact.\n\n### Credit\n\nReported privately by Aaron (@aaronjmars). codebase-memory-mcp thanks them for the precise report and re-verification.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/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-8xwq-xv2x-853r"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-114495"
}, {
"type" : "WEB",
"url" : "https://github.com/DeusData/codebase-memory-mcp/pull/941"
}, {
"type" : "WEB",
"url" : "https://github.com/DeusData/codebase-memory-mcp/commit/a2f09c7ce97205147f127c2c8b12861bf74a02a3"
}, {
"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-190", "CWE-681", "CWE-787" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2026-12-01T00:39:56Z",
"nvd_published_at" : "2026-11-20T20:17:10Z"
}
}