Skip to content
OpenAdvisories
Medium · 6.3 CVE-2026-44968 EUVD-2026-44991GHSA-xpww-f6pm-cfhqPYSEC-2026-2444

dbt-mcp: Argument Injection in dbt CLI Tool Wrappers via node_selection and resource_type Parameters

Published Jul 16, 2026 · Updated Jul 17, 2026 · Assigned by GitHub_M

Description

dbt-mcp is a Model Context Protocol server for interacting with dbt. Prior to 1.17.1, _run_dbt_command() in src/dbt_mcp/dbt_cli/tools.py appended unsanitized node_selection and resource_type values to the dbt subprocess argument list, allowing an MCP client to inject dbt global flags such as --profiles-dir, --project-dir, and --target into subprocess.Popen even though shell=False prevents shell metacharacter injection. This issue is fixed in version 1.17.1.

Affected products

VendorProductAffectedFixed
dbt-labs dbt-mcp < 1.17.1 —

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI dbt-mcp < 1.17.1 1.17.1 GHSA-xpww-f6pm-cfhq

References