Bagel MCP argument injection in rsync pipeline task (CVE-2026-138028)
Summary
Bagel (bagel-mcp) before 2.5.5 lets rsync options such as -e/--rsh through its pipeline task because only --quiet and --log-format values are rejected, which can run commands as the Bagel server process. Version 2.5.5 replaces the option list with an allowlist. The vendor advisory GHSA-gx2g-3pch-43q5 is labelled Critical overall; it also covers a separate SQL finding that it rates Critical, and it rates the rsync finding High.
Severity
Timeline
The vendor published GHSA-gx2g-3pch-43q5 with the fix in version 2.5.5.
The advisory for CVE-2026-138028 (GHSA-7xxf-5gcm-m2mv) was published.
How it happened
Per the vendor advisory, the rsync task's options were checked against a denylist that rejected only --quiet and --log-format values, so other options, including -e/--rsh and --rsync-path, passed through. The advisories describe attackers who influence the LLM through prompt-injected content as able to trigger run_pipeline with those options and execute commands as the Bagel server process. The same vendor advisory also covers a separate SQL sandboxing issue, which 2.5.5 addresses.
How to check your app
- before 2.5.5: Check whether the installed bagel-mcp package or Docker image is older than 2.5.5.
- before 2.5.5: Review pipeline configurations for rsync task options that contain -e, --rsh or --rsync-path.
Sources
Corrections and updates
Cite this entry
- Title
- Bagel MCP argument injection in rsync pipeline task (CVE-2026-138028)
- Added
- Nov 27, 2026
- URL
- https://vibeincidents.com/incidents/incident-cve-2026-138028/
- Suggested citation
VibeIncidents. "Bagel MCP argument injection in rsync pipeline task (CVE-2026-138028)." Nov 27, 2026. https://vibeincidents.com/incidents/incident-cve-2026-138028/