Bagel before 2.5.5 Unsandboxed DuckDB SQL Execution via query_messages
CVE-2026-138027Published 27 Nov 2026, 19:15 UTC
Real-world risk
1.2/ 10Low
Routine
If the vulnerable configuration applies to you: 2.7
PreliminaryFrom the CVSS vector only · confidence low
CVSS
7.7
scored by the vendor (CNA), CVSS 4.0
In plain words
No plain-language summary yet. The original description is below.
Original description (from VulnCheck)
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.
Am I affected?
| Product | Affected versions (from the sources) | Fixed in |
|---|---|---|
| BagelNiche | < 2.5.5 | 2.5.5 |
What to do
Update to a fixed version: 2.5.5.
Why this score
| Factor | Value | Evidence | × |
|---|---|---|---|
| Impact | Full compromiseCode execution or full control of the system or application | From the CVSS vector | 1.00 |
| Attacker position | InternetAnyone on the Internet can reach a typical deployment | From the CVSS vector | 1.00 |
| Privileges needed | NoneNo account | From the CVSS vector | 1.00 |
| Victim interaction | RoutineA normal action: open a file, visit a page, click a link | From the CVSS vector | 0.70 |
| Configuration | UncommonNeeds a non-default feature that a minority enables | From the CVSS vector | 0.45 |
| Reliability | HardNarrow race, needs an extra info leak, needs a man-in-the-middle position, or must be chained with another bug | From the CVSS vector | 0.45 |
Threat level T1: Nothing known (× 0.85)
The default for a new disclosure
EPSS 0.6% chance of exploitation in 30 days (percentile 50), as of 2026-12-02.
The arithmetic
- Prerequisites multiplied together0.142
- Threat T1: Nothing known0.850
- 10 × impact 1 × prerequisites 0.1418 × threat 0.851.205
- Rounded to one decimal between 0.1 and 101.2
Exploitation and evidence timeline
- 27 Nov 2026 Published
- 2 Dec 2026 Risk 1.2 (cvss fallback)
Weakness
CWE-749
References
- https://github.com/Extelligence-ai/bagel/security/advisories/GHSA-gx2g-3pch-43q5vendor-advisory
- https://github.com/Extelligence-ai/bagel/commit/cbec958edd9ce105b9005c9e31631b1dc420ee4fpatch
- https://github.com/Extelligence-ai/bagel/releases/tag/v2.5.5release-notes
- https://github.com/Extelligence-ai/bagel/blob/v2.5.4/bagel_mcp/query.py#L11-L29technical-description
- https://github.com/Extelligence-ai/bagel/blob/v2.5.4/bagel_mcp/server.py#L246technical-description
- https://www.vulncheck.com/advisories/bagel-before-2.5.5-unsandboxed-duckdb-sql-execution-via-query-messagesthird-party-advisory
- CVE-2026-138027 on CVE.org