Bagel before 2.5.5 Unsandboxed DuckDB SQL Execution via query_messages
- State
- Published
- Severity
- 7.7 High
- Published
- Nov 27, 2026
- Updated
- Nov 27, 2026
- Reserved
- Nov 27, 2026
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.
| Product | Versions |
|---|---|
| Bagel Extelligence-ai | before 2.5.5 Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 4.0 | 7.7 High | VulnCheck | |
| 3.1 | 7.5 High | VulnCheck |
Weaknesses
- CWE-749 Exposed Dangerous Method or Function
References
- GitHub Security Advisory (GHSA-gx2g-3pch-43q5)Vendor Advisory
- https://github.com/Extelligence-ai/bagel/commit/cbec958edd9ce105b9005c9e31631b1dc420ee4fPatch
- Bagel v2.5.5 Release NotesRelease Notes
- https://github.com/Extelligence-ai/bagel/blob/v2.5.4/bagel_mcp/query.py#L11-L29Technical Details
- https://github.com/Extelligence-ai/bagel/blob/v2.5.4/bagel_mcp/server.py#L246Technical Details
- VulnCheck Advisory: Bagel before 2.5.5 Unsandboxed DuckDB SQL Execution via query_messagesThird-Party Advisory
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.