{"id":"CVE-2026-138027","aliases":["GHSA-gx2g-3pch-43q5","CVE-2026-138028"],"title":"Bagel before 2.5.5 Unsandboxed DuckDB SQL Execution via query_messages","originalDescription":"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.","severity":{"cvss":7.7,"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","label":"high"},"exploitation":{"kev":null,"epss":null,"exploitDb":null},"affected":[{"ecosystem":"vendor","name":"Bagel","range":">=0, <2.5.5","fixed":"2.5.5"}],"references":[{"url":"https://github.com/Extelligence-ai/bagel/security/advisories/GHSA-gx2g-3pch-43q5","type":"vendor-advisory"},{"url":"https://github.com/Extelligence-ai/bagel/commit/cbec958edd9ce105b9005c9e31631b1dc420ee4f","type":"patch"},{"url":"https://github.com/Extelligence-ai/bagel/releases/tag/v2.5.5","type":"release-notes"},{"url":"https://github.com/Extelligence-ai/bagel/blob/v2.5.4/bagel_mcp/query.py#L11-L29","type":"technical-description"},{"url":"https://github.com/Extelligence-ai/bagel/blob/v2.5.4/bagel_mcp/server.py#L246","type":"technical-description"},{"url":"https://www.vulncheck.com/advisories/bagel-before-2.5.5-unsandboxed-duckdb-sql-execution-via-query-messages","type":"third-party-advisory"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/138xxx/CVE-2026-138027.json","type":"advisory"},{"url":"https://github.com/Extelligence-ai/bagel","type":"package"},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-138027","type":"advisory"}],"sources":[{"name":"nvd","at":"2026-11-27T20:51:04.835Z","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-138027","license":"NVD terms of use","firstSeenAt":"2026-11-27T20:51:04.835Z"},{"name":"osv","at":"2026-11-27T23:03:32.831Z","url":"https://osv.dev/vulnerability/CVE-2026-138027","license":"CC-BY 4.0","firstSeenAt":"2026-11-27T21:24:53.415Z"},{"name":"cvelistV5","at":"2026-11-28T14:58:03.394Z","url":"https://www.cve.org/CVERecord?id=CVE-2026-138027","license":"CVE Terms of Use","firstSeenAt":"2026-11-27T19:42:35.788Z"}],"firstSeenAt":"2026-11-27T19:42:35.788Z","publishedAt":"2026-11-27T19:15:20.080Z","modifiedAt":"2026-11-27T21:11:12.506Z"}