| Field | Value |
|---|---|
| CVE / NVD | CVE-2026-54561 |
| Date (index) | 2026-06-06 |
| Affected product (index) | mcp-memory-keeper: arbitrary local file read in context_import via unvalidated filePath |
| GHSA ID | GHSA-f7wf-v2vw-mpcx |
| OWASP MCP Top 10 (2025) | MCP02 - Privilege Escalation via Scope Creep |
| Published / disclosed | 2026-06-06 |
| Ecosystem | Application / upstream project |
| Component | mcp-memory-keeper: arbitrary local file read in context_import via unvalidated filePath |
| EPSS score | 0.002490000 (FIRST EPSS, 2026-09-26) |
| CVSS score | Moderate / 6.2 |
| CWE | CWE-22 / CWE-209 |
| Affected versions | v0.12.2, v0.12.1, v0.12.0, v0.11.0, v0.10.2, v0.8.5 |
| Fixed versions | 0.13.0 |
| Fix status | Patched |
| Exploit status | Public advisory / public CVE record |
| Notes | Added during 2026-09-07 gap review against NVD, GitHub Advisory Database, OSV, OpenCVE, and related MCP advisory searches. |
mcp-memory-keeper before 0.13.0 passed the caller-supplied context_import filePath directly to fs.readFileSync without path confinement. A malicious MCP client or prompt-injected agent could read files outside the intended directory; valid JSON files could be imported and retrieved, and parse errors could leak leading bytes from non-JSON files. Fixed in 0.13.0.
Exposure depends on deployment: reachable MCP transports, enabled MCP tools, local listeners without robust Host/Origin/authentication checks, or trusted workspace/project MCP configuration treated as safe input.
The issue maps to CWE-22, CWE-209; review the upstream advisory for the exact vulnerable code path and patched implementation.
This issue affects an MCP server, SDK, gateway, client, integration, or MCP-enabled workflow where tool execution, transport exposure, secrets, files, or authorization boundaries are part of the risk surface.
Add a minimal vulnerable code snippet here only after reviewing the linked upstream commit / advisory.
Upgrade to the vendor-fixed version where available. Restrict MCP listeners to trusted networks, require authentication for HTTP/SSE/Streamable HTTP transports, validate Host and Origin headers, constrain filesystem and command-execution tools, and treat project/workspace MCP configuration as untrusted input.
Prefer vendor advisories and defensive write-ups; do not host weaponized exploit code in this repository.