Vulnerability record
CVE-2026-138027
The short answer
CVE-2026-138027 affects Extelligence-ai Bagel and is rated high (CVSS 7.5). It is not in CISA's Known Exploited Vulnerabilities catalog.
What it is
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.
Weakness: CWE-749.
Severity
7.5 high
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
Exploited (CISA KEV)
Not listed
CISA lists confirmed exploitation only
EPSS, next 30 days
No score
FIRST scores CVEs within a day of publication
How it can be exploited
- Attack vector
- Network
- Attack complexity
- High
- Privileges required
- None
- User interaction
- Required
- Scope
- Unchanged
- Confidentiality impact
- High
- Integrity impact
- High
- Availability impact
- High
Affected products
Bagel. NVD's record lists the exact affected versions.
References
- github.com/Extelligence-ai/bagel/blob/v2.5.4/bagel_mcp/query.py#L11-L29
- github.com/Extelligence-ai/bagel/blob/v2.5.4/bagel_mcp/server.py#L246
- github.com/Extelligence-ai/bagel/commit/cbec958edd9ce105b9005c9e31631b1dc420ee4f
- github.com/Extelligence-ai/bagel/releases/tag/v2.5.5
- github.com/Extelligence-ai/bagel/security/advisories/GHSA-gx2g-3pch-43q5
- www.vulncheck.com/advisories/bagel-before-2.5.5-unsandboxed-duckdb-sql-execution-via-query-messages
Questions
Is CVE-2026-138027 being exploited?
It is not in CISA's Known Exploited Vulnerabilities catalog as of 2026-11-27.
How do I fix CVE-2026-138027?
Follow the vendor advisory in the references below. NVD lists the affected versions under its configurations.
From NVD, CISA KEV, FIRST EPSS and OSV.dev, checked . Status on NVD: Received. The description is NVD's text, quoted as published.
Related
Newly exploited vulnerabilities, every Monday
What CISA added to its KEV catalog that week, and the Critical CVEs most likely to be exploited. One email a week, one click to stop.
Know the day a CVE lands in your code
Connect a GitHub repository and ZeusQA checks its dependencies daily, briefs each advisory and opens the fix. Three test runs free, no card.