Repository navigation
v4.28.1 — SECURITY: wiki_search no longer runs a shell (GHSA-h2jf-xmmf-2w8p)
Security fix — MCP bridge 2.40.1. The read-only wiki_search tool built a shell command string with the query inside double quotes; $(...) and backticks expand there, so a search term shaped that way ran commands as the bridge user. CVSS 3.1 7.8 (local stdio; needs a wiki directory to exist and the host to invoke the search with attacker-chosen text). The Mnemo server itself is unaffected.
grep now receives its arguments directly with no shell (wiki-search.js). wiki-search.test.js covers eight injection shapes plus option- and path-shaped queries. Behaviour is otherwise unchanged.
Reported by Artur Chlebicki (@Artur12555) — thank you for the clear source-to-sink trace.
Upgrade: pull, then restart every MCP host that runs the bridge (Claude Desktop, Claude Code, Hermes/OpenClaw gateways). The fix is inert until the bridge process restarts.