Skip to main content
CVE-2026-138027VulnerabilityPublished

Bagel (bagel-mcp) before 2.5.5 exposes unsandboxed DuckDB SQL execution through the read-only annotated query_messages

Source GCVE Database

0
Compare
Authoritative record:CVE-2026-138027· High 7.7

Not known to be exploited · CVSS 7.7 High : upgrade to 2.5.5 soon.

Data as of 27 Nov 2026, 22:31 UTC

CVSS 4.0 base score
7.7High
How severe the flaw is on the 0–10 CVSS scale.

Thin evidence

One scorer or none
CVSS scores by source
CNA (VulnCheck)CVSS 4.07.7
CNA (VulnCheck)CVSS 3.17.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:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 27 Nov 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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

ProductAffectedFixed in
Extelligence-aiBagelAffected
  • <2.5.5
Fixed in
  • 2.5.5
PyPIBagelpkg:pypi/BagelOther threatsAffected
  • <2.5.5
Fixed in
  • 2.5.5

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

Community reviews

Loading reviews…