dbt MCP Server has an Argument Injection in dbt CLI Tool Wrappers via node_selection and resource_type Parameters
CVE-2026-44968 · GHSA-xpww-f6pm-cfhq · published 2026-05-14
- Severity
- Medium
- CVSS score
- 6.3
- Chance of exploitation (EPSS)
- 0.21%
- Fixed in
- 1.17.1
- Exploitation Public proof of concept
- Automatable No
- Technical impact Partial
- CISA SSVC
--profiles-dir is accepted by dbt as a global option, overriding the server's configured profile directory. When an attacker-controlled profiles.yml exists at the injected path, dbt executes with the attacker's database configuration — demonstrated by the DuckDB file write to /tmp/PWNEDbyinjection.duckdb. Preconditions and scope: The attacker must be able to supply crafted MCP tool arguments (normal MCP client access) and must have a profiles.yml accessible at the injected path on the host running dbt-mcp. In the common local-development deployment model, a prompt-injected LLM agent sharing the filesystem can write this file before invoking the dbt tool.
Upgrade dbt-mcp to 1.17.1 or later. If you start it from an MCP config with npx or uvx, pin that version so an old cached copy is not used.
Vector 1 — validate each nodeselection token before extending argv:**
| Package | Registry | Affected | Fixed in |
|---|---|---|---|
| dbt-mcp | PyPI | <= 1.17.0 | 1.17.1 |
- CriticalUnauthenticated Remote Code Execution in Langflow via Public Flow Build EndpointlangflowExploited
- CriticalRay is vulnerable to Critical RCE via Safari & Firefox Browsers through DNS Rebinding AttackrayExploited
- CriticalLangflow Unauth RCElangflow, langflow-baseExploited
- HighLiteLLM: Authenticated command execution via MCP stdio test endpointslitellmExploited
- CriticalMLflow vulnerable to remote code execution on unauthenticated servers via third-party scorer deserialization importing caller-placed artifacmlflow
- CriticalAgno: Arbitrary code execution via `eval()` on `field_type` in `FunctionCall`agno
- Mediumdbt MCP Server: Unauthenticated OAuth Context Endpoint Leaks dbt Platform Tokensdbt-mcp
- Lowdbt MCP Server Logs Tool Arguments Including SQL Queries and Credentials in Plaintext Without Redaction When File Logging Is Enableddbt-mcp
- Lowdbt MCP Server Transmits All MCP Tool Arguments Including Raw SQL and --vars Credentials to dbt Labs Telemetry by Default Without Redactiondbt-mcp
The impact, patch and workaround text comes from the advisory, shortened (GitHub Advisory Database, CC BY 4.0). Proof-of-concept and reproduction sections and code are left out; the original advisory has them.