dbt-mcp: Argument Injection in dbt CLI Tool Wrappers via node_selection and resource_type Parameters
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2026-44968
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 3 Nov 2026, 19:47 UTC · Revision 1
Source evidence
dbt-mcp: Argument Injection in dbt CLI Tool Wrappers via node_selection and resource_type Parameters
core-osv · Original sourcePublished 16 Jul 2026, 17:48 UTC
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.
osv:CVE-2026-44968
Complete source record
{
"id": "c8c86c15ea6843bfcced0150dea76952a9bda6f723cfcc91465197930bea5c92",
"url": "https://osv.dev/vulnerability/CVE-2026-44968",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "dbt-mcp: Argument Injection in dbt CLI Tool Wrappers via node_selection and resource_type Parameters",
"summary": "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.",
"evidence": "osv:CVE-2026-44968",
"products": [],
"severity": "medium",
"structured": {
"id": "CVE-2026-44968",
"aliases": [
"CVE-2026-44968",
"GHSA-xpww-f6pm-cfhq",
"PYSEC-2026-2444"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/dbt-labs/dbt-mcp",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "291ddd1baedeacd86d36c5fab470b2ad2958a67d"
},
{
"fixed": "6534507b5e7a729758d5baece155602cad0bb22f"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:getdbt:dbt_mcp_server:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "1.17.1"
}
],
"source": "CPE_RANGE"
},
{
"range": [
{
"fixed": "6534507b5e7a729758d5baece155602cad0bb22f"
}
],
"source": "REFERENCES_COMMIT"
},
{
"range": [
{
"fixed": "291ddd1baedeacd86d36c5fab470b2ad2958a67d"
}
],
"source": "REFERENCES_TAG",
"original_tag": "v1.17.1"
}
]
}
}
],
"versions": [
"v1.17.0",
"v1.16.0",
"v1.15.1",
"v1.15.0",
"v1.14.0",
"v1.13.0",
"v1.12.0",
"v1.11.0",
"v1.10.0",
"v1.9.3",
"v1.9.2",
"v1.9.1",
"v1.9.0",
"v1.8.1",
"v1.8.0",
"v1.7.0",
"v1.6.2",
"v1.6.1",
"v1.6.0",
"v1.5.2",
"v1.5.1",
"v1.5.0",
"v1.4.0",
"v1.3.0",
"v1.2.0",
"v1.1.0",
"v1.0.0",
"v0.10.3",
"v0.10.2",
"v0.10.1",
"v0.10.0",
"v0.9.1",
"v0.9.0",
"v0.8.4",
"v0.8.3",
"v0.8.2",
"v0.8.1",
"v0.8.0",
"v0.7.0",
"v0.6.2",
"v0.6.1",
"v0.6.0",
"v0.5.0",
"v0.4.2",
"v0.4.1",
"v0.4.0",
"v0.3.0",
"v0.2.14",
"v0.2.20",
"v0.2.19",
"v0.2.18",
"v0.2.17",
"v0.2.16",
"v0.2.15",
"v0.2.13",
"v0.2.12",
"v0.2.11",
"v0.2.10",
"v0.2.9",
"v0.2.8",
"v0.2.7",
"v0.2.6",
"v0.2.5",
"v0.2.4",
"v0.2.3",
"v0.2.2",
"v0.2.1",
"v0.2.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-44968.json"
}
}
],
"modified": "2026-10-28T02:30:31.815208096Z",
"provider": "osv",
"references": [
"https://github.com/dbt-labs/dbt-mcp/releases/tag/v1.17.1",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/44xxx/CVE-2026-44968.json",
"https://github.com/dbt-labs/dbt-mcp/security/advisories/GHSA-xpww-f6pm-cfhq",
"https://nvd.nist.gov/vuln/detail/CVE-2026-44968",
"https://github.com/dbt-labs/dbt-mcp/commit/6534507b5e7a729758d5baece155602cad0bb22f",
"https://github.com/dbt-labs/dbt-mcp/pull/752"
],
"provider_metadata": {
"cwe_ids": [
"CWE-88"
],
"cna_assigner": "GitHub_M",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/44xxx/CVE-2026-44968.json"
}
},
"related_cves": [
{
"value": "CVE-2026-44968",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 498802,
"published_at": "2026-07-16T17:48:29.604+00:00"
}