Dev.to Security 🔐 Cybersecurity 👁 0 📖 2 min read

One bagel-mcp Body Match and the Two Controls a Public Count Cannot Verify

One bagel-mcp Body Match and the Two Controls a Public Count Cannot Verify Bagel provides MCP tools that can query data and run pipeline tasks. A body match for the package name may identify an exposed interface, but t

One bagel-mcp Body Match and the Two Controls a Public Count Cannot Verify

Bagel provides MCP tools that can query data and run pipeline tasks. A body match for the package name may identify an exposed interface, but the CVE response also depends on command construction and database capability. Neither is visible in the count alone.

The measurement

On 2026-11-27 at 23:43 UTC, ZoomEye was queried with http.body="bagel-mcp" using sub_type=all, page 1, and page size 1. The successful query returned one matching asset.

The result describes an indexed response body that contained the phrase. It does not prove that Bagel was running, that the MCP endpoint was reachable, or that the installation was below version 2.5.5.

What the CVE changed

Two CVEs published on the same day describe different Bagel paths. CVE-2026-138028 concerns rsync option injection: an influenced model could supply options such as --rsh or --rsync-path to a pipeline task and execute commands as the Bagel process. CVE-2026-138027 concerns unsandboxed DuckDB SQL: query_messages could read or write files and make network requests despite its read-only annotation.

The one public match cannot show whether the deployment uses the rsync task, the query tool, both, or neither. It also cannot show which filesystem and network privileges the process holds.

Reviewing the match

Confirm ownership before connecting. If the asset is yours, identify the version and MCP transport. Upgrade to Bagel 2.5.5 or later. Check whether the endpoint accepts unauthenticated or broadly authorized clients. Review pipeline definitions for user- or model-controlled rsync options and replace them with fixed argument positions. Review database mounts and DuckDB extension configuration so a read-only tool cannot reach arbitrary files or external services.

Use a container or service account with only the files needed by the pipeline. Keep credentials out of the model context and process environment. Record which pipeline runs originate from untrusted prompts or logs.

Interpreting one result

One body match is a small review queue, not a global exposure estimate. It may not identify the package at all if the response is a documentation page. A later return of zero would not prove removal either. Preserve the query, date, page scope, and response context.

ZoomEye is useful here for external candidate discovery and change review. The CVE controls that matter are local: fixed command shapes and capability-limited execution. Those controls should be verified even when the public query returns no matches.

References

📰 Read the original article on Dev.to Security

Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.