{"id":"CVE-2026-54561","title":"MCP Memory Keeper is an MCP server for persistent context management in AI coding assistants","summary":"MCP Memory Keeper is an MCP server for persistent context management in AI coding assistants. Prior to 0.13.0, context_import in src/index.ts passes the caller-controlled filePath directly to fs.readFileSync without restricting the path …","severity":"medium","cvss":6.2,"cvssVector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","cwe":["CWE-22","CWE-209"],"vendor":"mkreyman","product":"mcp-memory-keeper","affected":["mcp-memory-keeper < 0.13.0"],"patched":["mcp-memory-keeper 0.13.0"],"published":"2026-09-15","updated":"2026-09-15","sourceUpdated":"2026-09-15T18:17:23.207","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2026-54561","references":[{"url":"https://github.com/mkreyman/mcp-memory-keeper/commit/58640c22e037572e0b03bc0aa25d015ea98dcc6d","label":"security-advisories@github.com"},{"url":"https://github.com/mkreyman/mcp-memory-keeper/commit/b9369568468007c85f8aec3ae09ca6f611285bc5","label":"security-advisories@github.com"},{"url":"https://github.com/mkreyman/mcp-memory-keeper/commit/e0ab521a9e8343bcab1ca60ccc3601e4d86eaa97","label":"security-advisories@github.com"},{"url":"https://github.com/mkreyman/mcp-memory-keeper/issues/35","label":"security-advisories@github.com"},{"url":"https://github.com/mkreyman/mcp-memory-keeper/pull/36","label":"security-advisories@github.com"},{"url":"https://github.com/mkreyman/mcp-memory-keeper/releases/tag/v0.13.0","label":"security-advisories@github.com"},{"url":"https://github.com/mkreyman/mcp-memory-keeper/security/advisories/GHSA-f7wf-v2vw-mpcx","label":"security-advisories@github.com"},{"url":"https://github.com/mkreyman/mcp-memory-keeper/issues/35","label":"134c704f-9b21-4f2e-91b3-4a467353bcc0"},{"url":"https://github.com/mkreyman/mcp-memory-keeper/commit/84f6dfa692736a34ff36e2d2cf2188b71facf73b"},{"url":"https://github.com/advisories/GHSA-f7wf-v2vw-mpcx"}],"tags":["nvd","cve.org","exploit-available","ghsa","npm"],"exploitAvailable":true,"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-09-15T17:28:40.655510Z"},"aliases":["GHSA-f7wf-v2vw-mpcx"],"ecosystem":"npm","ingestedAt":"2026-07-17T20:15:43.307Z","epss":0.00297,"epssPercentile":0.22533,"slug":"CVE-2026-54561","body":"## Overview\n\nMCP Memory Keeper is an MCP server for persistent context management in AI coding assistants. Prior to 0.13.0, context_import in src/index.ts passes the caller-controlled filePath directly to fs.readFileSync without restricting the path to an export directory. An MCP client, including an LLM agent induced to call the tool, can use ../ traversal or an absolute path to target any file readable by the server process. A valid JSON file is parsed and imported into the caller's session, allowing its full contents to be retrieved through context_get or context_export, while JSON.parse errors for non-JSON files can return leading file bytes in a SyntaxError message. The two disclosure modes can expose other exported sessions, JSON credentials or service-account files, environment files, and portions of SSH keys or other local files. This issue is fixed in version 0.13.0.\n\n## Remediation\n\nRefer to the linked advisories for vendor-supplied fixes and affected version ranges.\n\n## Package advisory (CVE-2026-54561)\n\nAffected packages:\n\n- `mcp-memory-keeper < 0.13.0`\n\nPatched in:\n\n- `mcp-memory-keeper 0.13.0`\n\nSource: https://github.com/advisories/GHSA-f7wf-v2vw-mpcx","depth":"twilight","depthScore":46,"depthScoreParts":{"impact":34.1,"likelihood":0.1,"exploitation":12,"ransomware":0},"changes":[{"seq":204337,"id":"CVE-2026-54561","ts":1789494097248,"field":"exploit_available","old":"false","new":"true"}]}