dbt-mcp: Unauthenticated OAuth Context Endpoint Leaks dbt Platform Tokens
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Required
- Attack complexity
- High
- Impact type
- Information disclosure, Security bypass
- Confidentiality · integrity · availability
- High · High · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-200 and CWE-306.
Summary
dbt-mcp is a Model Context Protocol server for interacting with dbt. Prior to 1.20.0, the local OAuth helper in src/dbt_mcp/oauth/fastapi_app.py exposes GET /dbt_platform_context without authentication or Host validation after a user completes the dbt Platform OAuth flow. The endpoint returns the full DbtPlatformContext, including access_token and refresh_token values persisted by the context manager, to any process that can reach 127.0.0.1:6785. The absence of TrustedHostMiddleware allows a remote attacker to use DNS rebinding against a victim's browser because the helper accepts arbitrary Host headers, while a co-located process can request the endpoint directly. The stolen tokens provide immediate dbt Platform API access as the victim and persistent access through the refresh token, allowing access to or modification of projects, jobs, environment secrets, and related account data. This issue is fixed in version 1.20.0.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| dbt-labs | dbt-mcp | before 1.20.0 | 1.20.0 | Patch available | CNA |
| — | dbt-mcp (PyPI) | before 1.20.0 | 1.20.0 | Patch available | GHSA-jr33-mw75-7j8f |
- dbt-mcp Vendordbt-labs Affected before 1.20.0 Fixed in 1.20.0 Patch available CNA
- dbt-mcp (PyPI) Vendor— Affected before 1.20.0 Fixed in 1.20.0 Patch available GHSA-jr33-mw75-7j8f
Remediation
- Fix · CNA dbt-mcp (dbt-labs) Fixed in 1.20.0
- Fix · GHSA-jr33-mw75-7j8f dbt-mcp (PyPI) Fixed in 1.20.0 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2026-55837
- 2026-10-03 Alias added: GHSA-jr33-mw75-7j8f
References
Other 5
More dbt-labs vulnerabilities
- TI-2026-74399 Unauthenticated SQL execution in dbt docs serve reads local files CVSS 4.0HIGH 8.2
- TI-2024-23935 dbt allows Binding to an Unrestricted IP Address via socketsocket CVSS 3.1MEDIUM 5.3
- TI-2026-32830 dbt-mcp: Argument Injection in dbt CLI Tool Wrappers via node_selection and resource_type Parameters CVSS 3.1MEDIUM 6.3
- TI-2026-32832 dbt-mcp: All MCP Tool Arguments Including Raw SQL and --vars Credentials Transmitted to… CVSS 3.1MEDIUM 4.3
- TI-2026-32831 Sensitive information in log files in dbt-labs dbt-mcp CVSS 3.1LOW 3.3
- TI-2026-28367 dbt has a Command Injection in Reusable Workflow via Unsanitized comment-body Output CVSS 4.0CRITICAL 9.3
Sources
- CVE-2026-55837 · CVE Program
- CVE-2026-55837 · NVD
- FIRST EPSS
- GHSA-jr33-mw75-7j8f · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences