What happened
Bagel (bagel-mcp) before 2.5.5 contains an argument-injection vulnerability in RsyncFilesToLocalDirectory, where only `--quiet` and `--log-format` values are rejected, so an attacker can inject additional rsync options. Attackers who influence the LLM through prompt-injected content can trigger run_pipeline and inject rsync flags to write files outside the intended destination or pivot the rsync target. Published 2026-11-27, fixed in 2.5.5.
Why it matters
It converts a pipeline file-sync MCP tool into an arbitrary file-write/overwrite primitive on the host running the agent, and can be reached through untrusted conversation content the LLM trusts. Combined with the same product's DuckDB flaw, it gives prompt-injection-driven file and network access.
Attack vector
Prompt-injected content influences the model to invoke the pipeline tool with crafted rsync options, enabling out-of-scope file writes.
Affected systems
Extelligence-ai Bagel (bagel-mcp) < 2.5.5
Mitigation
Upgrade bagel-mcp to 2.5.5 or later.