Vulnerability · Published Jul 16, 2026 · Assigned by GitHub_M
CVE-2026-44968dbt-mcp: Argument Injection in dbt CLI Tool Wrappers via node_selection and resource_type Parameters
Medium 6.3
In plain English
A medium-severity argument injection in dbt-mcp from dbt-labs. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 11% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| PyPI | dbt-mcp | 1.17.1 | GHSA-xpww-f6pm-cfhq |
| PyPI | dbt-mcp | 1.17.1 | PYSEC-2026-2444 |
Affected products (as reported)
Weakness: CWE-88 · Vector: CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N
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