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.
Published: 2026-07-16
Score: 6.3 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability stems from the dbt‑mcp server concatenating the values of the node_selection and resource_type parameters directly into the argument list used to invoke dbt through subprocess.Popen. Because these values are not sanitized, an MCP client can supply arbitrary dbt global flags—such as --profiles-dir, --project‑dir, and --target—that will be applied to the dbt command, even though shell=False is used, which mitigates traditional shell metacharacter injection. The attacker can therefore alter the execution context of dbt commands, misconfiguring or redirecting dbt runs. This does not enable arbitrary shell execution; the impact is limited to the configuration of dbt runs. The issue was addressed in version 1.17.1.

Affected Systems

The affected product is dbt-labs dbt-mcp, any release prior to v1.17.1. Releases from v1.17.1 onward include the fix that sanitizes the node_selection and resource_type inputs.

Risk and Exploitability

The CVSS score of 6.3 indicates moderate severity. The EPSS score of less than 1% suggests exploitation is currently unlikely. The vulnerability is not listed in the CISA KEV catalog. The attack vector would require an attacker to connect to the MCP server as a client and supply crafted node_selection or resource_type values; therefore the risk is higher in environments where the MCP interface is exposed to untrusted users or networks. Successful exploitation would enable an attacker to influence the execution context of dbt commands, but it does not directly lead to arbitrary code execution.

Generated by OpenCVE AI on August 1, 2026 at 08:39 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade dbt-mcp to version 1.17.1 or newer, which sanitizes node_selection and resource_type arguments.
  • Restrict access to the MCP server so that only trusted clients can connect, minimizing exposure to untrusted input.
  • Enforce authentication mechanisms such as API keys or TLS to prevent unauthenticated clients from injecting parameters.

Generated by OpenCVE AI on August 1, 2026 at 08:39 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-xpww-f6pm-cfhq dbt MCP Server has an Argument Injection in dbt CLI Tool Wrappers via node_selection and resource_type Parameters
History

Tue, 28 Jul 2026 21:00:00 +0000

Type Values Removed Values Added
First Time appeared Dbt-labs
Dbt-labs dbt-mcp
Vendors & Products Dbt-labs
Dbt-labs dbt-mcp

Fri, 17 Jul 2026 18:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Thu, 16 Jul 2026 18:00:00 +0000

Type Values Removed Values Added
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.
Title dbt-mcp: Argument Injection in dbt CLI Tool Wrappers via node_selection and resource_type Parameters
Weaknesses CWE-88
References
Metrics cvssV3_1

{'score': 6.3, 'vector': 'CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N'}


Subscriptions

Dbt-labs Dbt-mcp
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-07-17T18:10:05.040Z

Reserved: 2026-05-08T16:23:33.263Z

Link: CVE-2026-44968

cve-icon Vulnrichment

Updated: 2026-07-17T18:09:41.879Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-01T08:45:02Z

Weaknesses
  • CWE-88

    Improper Neutralization of Argument Delimiters in a Command ('Argument Injection')