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.
Severity (CVSS)
| Base score | 6.3 |
|---|---|
| Severity | Medium |
| Version | CVSS 3.1 |
| Vector | CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N |
| Provided by | CNA |
Weaknesses
- CWE-88 — CWE-88: Improper Neutralization of Argument Delimiters in a Command ('Argument Injection')
Affected products
| Vendor | Product | Versions |
|---|---|---|
| dbt-labs | dbt-mcp | < 1.17.1 |
References
- https://github.com/dbt-labs/dbt-mcp/security/advisories/GHSA-xpww-f6pm-cfhq (x_refsource_CONFIRM)
- https://github.com/dbt-labs/dbt-mcp/pull/752 (x_refsource_MISC)
- https://github.com/dbt-labs/dbt-mcp/commit/6534507b5e7a729758d5baece155602cad0bb22f (x_refsource_MISC)
- https://github.com/dbt-labs/dbt-mcp/releases/tag/v1.17.1 (x_refsource_MISC)
Generated from the official CVE List on 17 Jul 2026 07:01 UTC.