All vulnerabilities

PyPI

CVE-2026-138027

Bagel before 2.5.5 Unsandboxed DuckDB SQL Execution via query_messages

Severity
High 7.7
Published
27 Nov 2026
Last changed
27 Nov 2026
Added to UpHeron
27 Nov 2026
Fixed in
2.5.5
Exploit chance
0.6% in the next 30 daysHigher than 42% of CVEs. EPSS by FIRST, 29 Nov 2026
Weakness
CWE-749
Attack
Over the network · Only under certain conditions · No login needed · Needs someone to view a page or file
Attacker can
Read data · Change data · Take it down
CVSS vector
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
Sources
CVE Program

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.

From the CVE Program.

Affected software

SoftwareAffected versions
bagel-mcpPyPI · osv:PyPI:bagel-mcp
  • Every version before 2.5.5

About bagel-mcp

Weekly downloads (PyPI)
274PyPI Stats, 27 Nov 2026

Vulnerabilities in bagel-mcp

In our list
2
Published in the last 12 months
2
Critical, last 12 months
0
High, last 12 months
2
Known exploited
0
Search the list for bagel-mcp

References

  • CVE.org https://www.cve.org/CVERecord?id=CVE-2026-138027