Skip to content
HighVulnerabilityLLM-specific

CVE-2026-138027: Bagel (bagel-mcp) unsandboxed DuckDB SQL execution via query_messages

Identifier
CVE-2026-138027
Published
Record updated
View JSON
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.6%Estimated probability that this CVE is exploited in the next 30 days, from the FIRST Exploit Prediction Scoring System. Read on .

Summary

Bagel (bagel-mcp) before 2.5.5 exposes unsandboxed DuckDB SQL execution through the read-only annotated query_messages MCP tool. 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.

Mitigation

The source does not state a fix yet. Check the original advisory for updates.