# CVE-2026-44968: dbt-mcp: Argument Injection in dbt CLI Tool Wrappers via node_selection and resource_type Parameters

> Attackers can inject dbt CLI flags via MCP parameters to alter execution context, potentially leading to code execution or security bypasses.

- **Severity:** Medium 6.3 (`CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N`)
- **Exploited in the wild:** Not known
- **Login needed:** Any signed-in user
- **Attackable:** Local or same network only
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 16 Jul 2026
- **Updated:** 17 Jul 2026
- **Also known as:** GHSA-xpww-f6pm-cfhq, PYSEC-2026-2444

## What is CVE-2026-44968?

CVE-2026-44968 is a medium-severity command injection vulnerability in dbt-labs dbt-mcp, published on 16 Jul 2026. It can only be exploited from the same machine or local network, with no action from the victim.

### 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.

Weakness: CWE-88 (Improper Neutralization of Argument Delimiters in a Command)

## Which versions are affected by CVE-2026-44968?

3 open source packages ship an affected version, including dbt-mcp. It affects 1 product.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `dbt-mcp` | PyPI | All versions | 1.17.1 |
| `dbt-mcp` | PyPI | All versions | 1.17.1 |
| `dbt-mcp` | PyPI | All versions | 1.17.1 |

Products: Getdbt Dbt Mcp Server.

## How do I fix CVE-2026-44968?

Upgrade dbt-mcp to 1.17.1 or later.

## Is CVE-2026-44968 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-44968 exists.

## Other vulnerabilities in dbt-labs dbt-mcp

- [CVE-2026-44970](https://insights.sbomify.com/CVE-2026-44970/): dbt MCP Server Transmits All MCP Tool Arguments Including Raw SQL and --vars Credentials to dbt Labs Telemetry by Default Without Redaction (low 3.1)
- [CVE-2026-44969](https://insights.sbomify.com/CVE-2026-44969/): dbt MCP Server Logs Tool Arguments Including SQL Queries and Credentials in Plaintext Without Redaction When File Logging Is Enabled (low 2.5)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2026-44968 and fix it if it is affected.

What it is: CVE-2026-44968 is a medium-severity command injection vulnerability in dbt-labs dbt-mcp, published on 16 Jul 2026. It can only be exploited from the same machine or local network, with no action from the victim.
Exploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-44968 exists.

Affected packages and fixed versions:
- dbt-mcp (PyPI): affected all versions; fixed in 1.17.1
- dbt-mcp (PyPI): affected all versions; fixed in 1.17.1
- dbt-mcp (PyPI): affected all versions; fixed in 1.17.1

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2026-44968/ (Markdown: https://insights.sbomify.com/CVE-2026-44968/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2026-44968
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-44968
- OSV: https://osv.dev/vulnerability/CVE-2026-44968

---
From sbomify Insights: https://insights.sbomify.com/CVE-2026-44968/
Summaries are generated and may contain mistakes; the official description above is the record.
