{"affected":[{"defaultStatus":"unaffected","ecosystem":"pypi","packageName":"bagel-mcp","product":"Bagel","source":"CNA: VulnCheck","vendor":"Extelligence-ai","versions":[{"lessThan":"2.5.5","status":"affected","version":"0","versionType":"semver"}]}],"cveId":"CVE-2026-138027","cwes":["CWE-749"],"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.","epss":null,"exploits":[],"kev":null,"metrics":[{"score":7.7,"severity":"high","source":"CNA: VulnCheck","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","version":"4.0"},{"score":7.5,"severity":"high","source":"CNA: VulnCheck","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H","version":"3.1"}],"modifiedAt":1795806920080,"publishedAt":1795806920080,"references":[{"source":"CNA: VulnCheck","tags":["vendor-advisory"],"url":"https://github.com/Extelligence-ai/bagel/security/advisories/GHSA-gx2g-3pch-43q5"},{"source":"CNA: VulnCheck","tags":["patch"],"url":"https://github.com/Extelligence-ai/bagel/commit/cbec958edd9ce105b9005c9e31631b1dc420ee4f"},{"source":"CNA: VulnCheck","tags":["release-notes"],"url":"https://github.com/Extelligence-ai/bagel/releases/tag/v2.5.5"},{"source":"CNA: VulnCheck","tags":["technical-description"],"url":"https://github.com/Extelligence-ai/bagel/blob/v2.5.4/bagel_mcp/query.py#L11-L29"},{"source":"CNA: VulnCheck","tags":["technical-description"],"url":"https://github.com/Extelligence-ai/bagel/blob/v2.5.4/bagel_mcp/server.py#L246"},{"source":"CNA: VulnCheck","tags":["third-party-advisory"],"url":"https://www.vulncheck.com/advisories/bagel-before-2.5.5-unsandboxed-duckdb-sql-execution-via-query-messages"}],"remediation":[{"kind":"fix","source":"CNA: VulnCheck","text":"The reporting source identifies this reference as a patch. Check the advisory for affected versions and supported release branches.","url":"https://github.com/Extelligence-ai/bagel/commit/cbec958edd9ce105b9005c9e31631b1dc420ee4f"}],"revision":"2ca8e23eaed9cad5960dd4ae59c9030221d352da8ebbaf6172814609f6183bb1","sources":[{"modifiedAt":1795806920080,"name":"CNA: VulnCheck","retrievedAt":1795810102957,"url":"https://www.cve.org/CVERecord?id=CVE-2026-138027"}],"ssvc":null,"status":"published","title":"Bagel before 2.5.5 Unsandboxed DuckDB SQL Execution via query_messages","updatedAt":1795810102957}