High

Bagel query_messages tool exposes unsandboxed DuckDB SQL

The query_messages MCP tool claims to be read-only but runs unsandboxed DuckDB SQL. An attacker who prompt-injects the driving LLM can read and write files and make network requests, enabling file theft and server-side request forgery.

Product
Systems
macOSWindowsLinux
Fixed in
2.5.5
CVSS
7.5
Weakness
CWE-749
Source
Get the fix in Telegram

Am I affected?

You are affected if the installed version is older than 2.5.5. Check the version you have and update to 2.5.5 or later. The fixed version is verified against a vendor or advisory source.

Affected software and versions

PackageEcosystemAffectedFixed in
Bagelother<2.5.52.5.5

A fixed version is shown only when it is verified against a vendor or advisory source.

Who should check

Anyone running Bagel (bagel-mcp) before 2.5.5, on macOS, Windows or Linux.

Expected outcome after remediation

Report whether Bagel is installed, which version, and whether it is fixed; if a vulnerable version is installed, update it to 2.5.5 or later.

Get the fix

FixLane has a reviewed fix procedure for this incident: a read-only check first, then the fix. Ask the Telegram bot, or connect an AI agent to the FixLane MCP server and call get_fix_prompt with incident id 5221 and your operating system.

Related Bagel incidents

All Bagel incidents