CVE-2026-100406: dbt: Unauthenticated Arbitrary SQL Execution in `dbt docs serve`

Published Oct 14, 2026
·
Updated

dbt enables data analysts and engineers to transform their data using the same practices that software engineers use to build applications. From 2.0.0-alpha.0 until 2.0.0-alpha.5, dbt docs serve exposes the unauthenticated POST /api/v1/query endpoint in crates/dbt-docs-server/src/handlers/query.rs, which passes caller-supplied SQL to DuckDbViewsBackend::queryarrow() in crates/dbt-index-core/src/backend.rs without authorization or an allowlist. A client that can reach the server can invoke DuckDB filesystem-reading functions to read files available to the dbt process, including files outside the docs index directory. The server binds to localhost by default, but operators can expose it to a network through the host option or DBTDOCSHOST setting. This issue is fixed in version 2.0.0-alpha.5.

Affected Software

1 affected component
dbt Labs dbt>=2.0.0-alpha.0<2.0.0-alpha.5

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade dbt to a version that resolves this vulnerability.

    Fixed in 2.0.0-alpha.5

Event History

Oct 14, 2026
CVE Published
via MITRE·06:27 PM
Data Sourced
via MITRE·06:27 PM
DescriptionWeakness

Frequently Asked Questions

1

Which deployments are exposed to remote exploitation?

By default, the server binds to localhost, so remote clients cannot reach it unless the host option or DBT_DOCS_HOST setting exposes it to a network. Any client able to reach the server can use the affected endpoint without authentication.

2

What access does an attacker need, and what can they access?

An attacker only needs network access to the dbt docs server; no authentication is required. They can submit SQL that invokes DuckDB filesystem-reading functions and read files available to the dbt process, including files outside the docs index directory.

3

Which versions are affected and what version fixes the issue?

The issue affects versions from 2.0.0-alpha.0 until 2.0.0-alpha.5. It is fixed in 2.0.0-alpha.5.

4

What can be done if updating is not immediately possible?

Keep dbt docs serve bound to localhost and do not expose it through the host option or DBT_DOCS_HOST setting. Restrict network reachability so untrusted clients cannot access the POST /api/v1/query endpoint.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203