Bagel (bagel-mcp) before 2.5.5 exposes unsandboxed DuckDB SQL execution through the read-only annotated query_messages
Source GCVE Database
Not known to be exploited · CVSS 7.7 High : upgrade to 2.5.5 soon.
Data as of 27 Nov 2026, 22:31 UTC
Thin evidence
One scorer or none| CNA (VulnCheck) | CVSS 4.0 | 7.7 |
|---|---|---|
| CNA (VulnCheck) | CVSS 3.1 | 7.5 |
- Patch
- Available – fixed in 2.5.5
CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 27 Nov 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Nov 2026.
What to do
Upgrade Bagel to 2.5.5.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| Extelligence-aiBagel | Affected
| Fixed in
|
PyPIBagelpkg:pypi/BagelOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
A fixed version 2.5.5 or later should be applied to remediate this vulnerability. Until patched, restrict access to the affected MCP tool and avoid allowing untrusted input to influence the LLM prompts that drive query execution.
Description
Bagel (bagel-mcp) versions before 2.5.5 allow unsandboxed execution of DuckDB SQL commands via the read-only annotated query_messages MCP tool. This vulnerability enables attackers who can inject prompts into the driving large language model (LLM) through recorded logs or topics to execute SQL commands such as read_csv_auto, COPY TO, or httpfs. These commands can be abused to read and write files on the server and perform server-side request forgery (SSRF).
References
- github.com/Extelligence-ai/bagel/security/advisories/GHSA-gx2g-3pch-43q5 (opens in a new tab)
- nvd.nist.gov/vuln/detail/CVE-2026-138027 (opens in a new tab)
- github.com/Extelligence-ai/bagel/commit/cbec958edd9ce105b9005c9e31631b1dc420ee4f (opens in a new tab)
- github.com/Extelligence-ai/bagel/blob/v2.5.4/bagel_mcp/query.py (opens in a new tab)
- github.com/Extelligence-ai/bagel/blob/v2.5.4/bagel_mcp/server.py (opens in a new tab)
- github.com/Extelligence-ai/bagel/releases/tag/v2.5.5 (opens in a new tab)
- vulncheck.com/advisories/bagel-before-2.5.5-unsandboxed-duckdb-sql-execution-via-query-messages (opens in a new tab)