Skip to content

v4.28.1 — SECURITY: wiki_search no longer runs a shell (GHSA-h2jf-xmmf-2w8p)

Choose a tag to compare

@GuyMannDude GuyMannDude released this 30 Oct 21:26
· 55 commits to master since this release

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.