CVE-2026-138027 Bagel before 2.5.5 Unsandboxed DuckDB SQL Execution via query_messages
HighCVSS 7.7
EPSS 0.59%
- Published
- Updated
- Exploit status
- No public exploit known
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.
Upgrade path
1 package: 1 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| pypi bagel-mcp | < 2.5.5 | 2.5.5 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| pypi bagel-mcp | < 2.5.5 | 2.5.5 |
References
- github.com technical-description
- github.com technical-description
- github.com patch
- Bagel v2.5.5 Release Notes release-notes
- GitHub Security Advisory (GHSA-gx2g-3pch-43q5) vendor-advisory
- VulnCheck Advisory: Bagel before 2.5.5 Unsandboxed DuckDB SQL Execution via query_messages third-party-advisory
- ENISA EUVD EUVD-2026-137493 third-party-advisory
- nvd.nist.gov