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.
Fix
Patch, vendor advisory and mitigation references on NVD 4
- https://github.com/dbt-labs/dbt-mcp/commit/6534507b5e7a729758d5baece155602cad0bb22f Patch
- https://github.com/dbt-labs/dbt-mcp/pull/752 Issue Tracking, Patch
- https://github.com/dbt-labs/dbt-mcp/security/advisories/GHSA-xpww-f6pm-cfhq Exploit, Mitigation, Vendor Advisory
- https://github.com/dbt-labs/dbt-mcp/security/advisories/GHSA-xpww-f6pm-cfhq Exploit, Mitigation, Vendor Advisory
Every line above is quoted from NVD, CISA, Microsoft, the vendor's own advisory or DISA; nothing is generated.
Change history 1
- First seenCVSS 6.3 · getdbtNVD modified 2026-10-24 20:10
Affected (CPE criteria) 1
cpe:2.3:a:getdbt:dbt_mcp_server:*:*:*:*:*:*:*:*
References 5
- https://github.com/dbt-labs/dbt-mcp/commit/6534507b5e7a729758d5baece155602cad0bb22f Patch
- https://github.com/dbt-labs/dbt-mcp/pull/752 Issue Tracking, Patch
- https://github.com/dbt-labs/dbt-mcp/releases/tag/v1.17.1 Release Notes
- https://github.com/dbt-labs/dbt-mcp/security/advisories/GHSA-xpww-f6pm-cfhq Exploit, Mitigation, Vendor Advisory
- https://github.com/dbt-labs/dbt-mcp/security/advisories/GHSA-xpww-f6pm-cfhq Exploit, Mitigation, Vendor Advisory