Description
dbt-mcp is a Model Context Protocol server for interacting with dbt. Prior to 1.17.1, DbtMCP.call_tool() in src/dbt_mcp/mcp/server.py logged the raw arguments dictionary at INFO level before each tool call and at ERROR level on exceptions, and configure_file_logging() wrote those records to dbt-mcp.log when DBT_MCP_SERVER_FILE_LOGGING=true, preserving sensitive sql_query, vars, and node_selection values in plaintext without automatic rotation or deletion. This issue is fixed in version 1.17.1.
Published: 2026-07-16
Score: 2.5 Low
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

dbt-mcp is a Model Context Protocol server for interacting with dbt. Prior to version 1.17.1, the DbtMCP.call_tool() method logged the raw arguments dictionary at INFO level before each tool call and at ERROR level on exceptions, and the configure_file_logging() routine wrote these records to the dbt‑mcp.log file when the DBT_MCP_SERVER_FILE_LOGGING environment variable was set to true. The logged data include unredacted sql_query, vars, and node_selection values, which can contain database credentials or other secrets, exposing confidential information in plaintext. This vulnerability is classified as CWE‑532 and has been fixed in dbt‑mcp version 1.17.1.

Affected Systems

dbt‑labs dbt‑mcp versions earlier than 1.17.1 are impacted when file logging is enabled via the DBT_MCP_SERVER_FILE_LOGGING environment variable. The issue is specifically tied to the DbtMCP.call_tool() method and the configure_file_logging() routine that writes log entries to dbt‑mcp.log. Users running older releases in environments where log files may be accessible or where log rotation is inadequate are therefore at risk.

Risk and Exploitability

The CVSS score of 2.5 indicates a low severity, and the EPSS score of less than 1% reflects an extremely low probability of exploitation. The vulnerability is not cataloged in the CISA KEV list. Attackers would need the ability to read the log files generated by dbt‑mcp to obtain the exposed credentials, which may be feasible for local users or potential escalation scenarios. Because the flaw does not support arbitrary code execution and requires a file logging configuration, the overall risk remains low but still warrants remediation. The bug was addressed in dbt‑mcp v1.17.1.

Generated by OpenCVE AI on July 31, 2026 at 01:32 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade dbt‑mcp to version 1.17.1 or later to eliminate the logging of raw arguments.
  • If an upgrade cannot be performed immediately, disable file logging by setting the environment variable DBT_MCP_SERVER_FILE_LOGGING to false or removing it entirely.
  • Ensure that any existing log files are protected with proper file system permissions or removed to prevent unauthorized access to sensitive data.

Generated by OpenCVE AI on July 31, 2026 at 01:32 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-7xgw-6qf3-7w59 dbt MCP Server Logs Tool Arguments Including SQL Queries and Credentials in Plaintext Without Redaction When File Logging Is Enabled
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, DbtMCP.call_tool() in src/dbt_mcp/mcp/server.py logged the raw arguments dictionary at INFO level before each tool call and at ERROR level on exceptions, and configure_file_logging() wrote those records to dbt-mcp.log when DBT_MCP_SERVER_FILE_LOGGING=true, preserving sensitive sql_query, vars, and node_selection values in plaintext without automatic rotation or deletion. This issue is fixed in version 1.17.1.
Title dbt-mcp: Tool Arguments Including SQL Queries and Credentials Logged in Plaintext Without Redaction When File Logging Is Enabled
Weaknesses CWE-532
References
Metrics cvssV3_1

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


Subscriptions

Dbt-labs Dbt-mcp
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-07-17T18:06:51.913Z

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

Link: CVE-2026-44969

cve-icon Vulnrichment

Updated: 2026-07-17T17:18:50.500Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-07-31T01:45:06Z

Weaknesses
  • CWE-532

    Insertion of Sensitive Information into Log File