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
getdbt: dbt mcp server
References5
- github.com/dbt-labs/dbt-mcp/security/advisories/GHSA-xpww-f6pm-… ExploitMitigationVendor Advisory
- github.com/dbt-labs/dbt-mcp/security/advisories/GHSA-xpww-f6pm-… ExploitMitigationVendor Advisory
- github.com/dbt-labs/dbt-mcp/commit/6534507b5e7a729758d5baece155… Patch
- github.com/dbt-labs/dbt-mcp/pull/752 Issue TrackingPatch
- github.com/dbt-labs/dbt-mcp/releases/tag/v1.17.1 Release Notes
Metrics
- CVSS 3.1
-
6.3
MEDIUM
Score source: CNA
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N - EPSS — exploit probability
- 0% percentile: 11 · as of 15 November 2026
- CWE
- CWE-88
Could this be exploited in your environment?
A patch closes the known hole. A penetration test shows what an attacker can still reach — with proof.