CVE-2026-138027
High 7.5 P4 · Monitor (17/100)Bagel (bagel-mcp) before 2.5.5 exposes unsandboxed DuckDB SQL execution through the read-only annotated query_messages MCP tool, allowing f…
Confirmed facts from the sources
- CVSS
- 7.5 (High) · CVSS 3.1
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
Scored by disclosure@vulncheck.com - Exploitation confirmed
- Not in the CISA KEV catalog
- Exploitation estimated (EPSS)
- 0.59 % · percentile 42.1 % (as of 29.11.2026)
Probability of exploitation in the next 30 days – an estimate by FIRST, not confirmation. - Public exploit
- No reference to a public exploit.
- Fix
- No fix known
- Monitored technologies
- No monitored technology
Description (source)
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.
Affected products and versions
| Vendor / product | Affected versions | Fixed in | Source |
|---|---|---|---|
| pip: bagel-mcp | < 2.5.5 | — | nvd |
Versions as published. “Fixed in” only where a source names the version explicitly.
Recommended mitigation
The sources name no fix or mitigation yet.
In general: check your versions, update to a fixed version, limit exposure until then and follow the vendor guidance.
AI interpretation
No AI interpretation yet – it is created for urgent advisories of monitored technologies. The facts above apply regardless.
Why this priority?: P4 · Monitor (17/100)
- Estimated exploitation probability 0.59 % (EPSS, percentile 42.1 %) – an estimate, not confirmation (+0)
- Technical severity: CVSS 7.5 (HIGH) – on its own not a reason for top priority (+12)
- No fix known – mitigations needed (+5)
Priority is a general assessment from CVSS, KEV, EPSS, exploits, relevance and fix availability. Whether a specific environment is affected depends on its versions, configuration and exposure.
Original advisories and links
- Advisory https://nvd.nist.gov/vuln/detail/CVE-2026-138027 · nvd
- Reference https://github.com/Extelligence-ai/bagel/blob/v2.5.4/bagel_mcp/query.py#L11-L29 · disclosure@vulncheck.com
- Reference https://github.com/Extelligence-ai/bagel/blob/v2.5.4/bagel_mcp/server.py#L246 · disclosure@vulncheck.com
- Reference https://github.com/Extelligence-ai/bagel/commit/cbec958edd9ce105b9005c9e31631b1dc420ee4f · disclosure@vulncheck.com
- Reference https://github.com/Extelligence-ai/bagel/releases/tag/v2.5.5 · disclosure@vulncheck.com
- Reference https://github.com/Extelligence-ai/bagel/security/advisories/GHSA-gx2g-3pch-43q5 · disclosure@vulncheck.com
- Reference https://www.vulncheck.com/advisories/bagel-before-2.5.5-unsandboxed-duckdb-sql-execution-v… · disclosure@vulncheck.com