CVE-2026-138027 is a high-severity (CVSS 7.5) CWE-749 vulnerability in Extelligence-ai Bagel. A fix is available — see the affected versions and patch details below.
Bagel (bagel-mcp) before 2.5.5 exposes unsandboxed DuckDB SQL execution through the read-only annotated query_messages MCP tool, allowing file access and network requests. Attackers…
Description
Bagel (bagel-mcp) before 2.5.5 exposes unsandboxed DuckDB SQL execution through the read-only annotated query_messages MCP tool, allowing file access and network requests. Attackers who prompt-inject the driving LLM via recorded logs or topics can invoke read_csv_auto, COPY TO, or httpfs to read and write files and perform server-side request forgery.
Affected Products
BagelExtelligence-aiDetection & mitigation playbook
Vendor / applianceDetect
Inventory every Extelligence-ai Bagel deployment and check each version against the affected-products list above.
Fix
Apply the Extelligence-ai Bagel security patch or hotfix for CVE-2026-138027 on the affected version, following the vendor advisory for your exact build.
Workarounds
Restrict outbound requests from the affected component to an allowlist of hosts, block access to link-local and internal address ranges at the network layer, and require authentication on internal services so a forged request cannot reach them unauthenticated. Alongside that, restrict the management interface to trusted networks and apply the vendor's recommended configuration mitigations.
Frequently Asked Questions
Is CVE-2026-138027 being exploited in your environment?
Detect and block the exploit chain at execution, on systems you cannot patch yet.