CVE-2026-54561 json
MCP Memory Keeper: Arbitrary local file read in mcp-memory-keeper context_import via unvalidated filePath
published 2026-07-17 3 mo ago modified 2026-09-30 39 d ago also GHSA-f7wf-v2vw-mpcx , EUVD-2026-78828
- cvss
- 6.2
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.2%
- EPSS 0.2% chance of exploitation in 30 days, percentile 16%
- public exploits
- 0
- none known
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 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.
Patch / fix
- npm mcp-memory-keeper 0.13.0
- github.com/mkreyman/mcp-memory-keeper@58640c2 commit
- github.com/mkreyman/mcp-memory-keeper@b936956 commit
- github.com/mkreyman/mcp-memory-keeper@e0ab521 commit
- github.com/mkreyman/mcp-memory-keeper@84f6dfa commit
- github.com/mkreyman/mcp-memory-keeper#36 pull request
- github.com/mkreyman/mcp-memory-keeper/releases/tag/v0.13.0 release
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- no
- Technical impact
- partial
- Assessed
- 54 d ago
Exploit prediction
0.25% chance of exploitation in the next 30 days, higher than 16% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/mkreyman/mcp-memory-keeper/issues/35 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 6.2 | CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| GitHub | 3.1 | 6.2 | CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | mcp-memory-keeper | <0.13.0 |
0.13.0 |
Affected products
- mkreyman mcp-memory-keeper
Classification
References
-
github.com
/mkreyman/mcp-memory-keeper/pull/36
web
- github.com /mkreyman/mcp-memory-keeper/commit/58640c22e037572e0b03bc0aa25d015ea98dcc6d
- github.com /mkreyman/mcp-memory-keeper/commit/b9369568468007c85f8aec3ae09ca6f611285bc5
- github.com /mkreyman/mcp-memory-keeper/commit/e0ab521a9e8343bcab1ca60ccc3601e4d86eaa97
-
github.com
/mkreyman/mcp-memory-keeper/commit/84f6dfa692736a34ff36e2d2cf2188b71facf73b
web
-
github.com
/mkreyman/mcp-memory-keeper/issues/35
exploit, web
-
github.com
/mkreyman/mcp-memory-keeper/security/advisories/GHSA-f7wf-v2vw-mpcx
web
-
github.com
/mkreyman/mcp-memory-keeper/releases/tag/v0.13.0
web
-
github.com
/mkreyman/mcp-memory-keeper
package
Sources
- CVE List CVE-2026-54561
- GitHub Advisory GHSA-f7wf-v2vw-mpcx
- NVD CVE-2026-54561
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.