Skip to content
MediumVulnerability

GHSA-f7wf-v2vw-mpcx: mcp-memory-keeper: Arbitrary local file read in context_import via unvalidated filePath

Published
Record updated
View JSON
Affected
  • mcp-memory-keeper < 0.13.0
Fixed in
0.13.0
  • released June 5, 2026, 42 days before disclosure
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.2%

Summary

GHSA-f7wf-v2vw-mpcx affects mcp-memory-keeper, where the context_import tool passed the caller-supplied filePath directly to fs.readFileSync without path confinement. A malicious MCP client, or an LLM agent prompt-injected into calling the tool, could read any file the server process can access. Valid JSON files are imported in full and retrievable through context_get or context_export, while other files leak their leading bytes through the JSON.parse SyntaxError message.

Mitigation

Fixed in 0.13.0 (PR #36). Upgrade to >= 0.13.0. There is no configuration-only workaround for affected versions.