dbt: Unauthenticated Arbitrary SQL Execution in `dbt docs serve`
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2026-100406
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 7 Nov 2026, 04:16 UTC · Revision 1
Source evidence
dbt: Unauthenticated Arbitrary SQL Execution in `dbt docs serve`
core-osv · Original sourcePublished 14 Oct 2026, 18:27 UTC
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.
osv:CVE-2026-100406
Complete source record
{
"id": "167e77e56511ca02fd2a7756985d2124c1df9189714938cf4e89eaa5b9384af5",
"url": "https://osv.dev/vulnerability/CVE-2026-100406",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "dbt: Unauthenticated Arbitrary SQL Execution in `dbt docs serve`",
"summary": "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.",
"evidence": "osv:CVE-2026-100406",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2026-100406",
"aliases": [
"CVE-2026-100406",
"GHSA-h2j2-2r7g-rff8"
],
"metrics": [
{
"type": "CVSS_V4",
"score": "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"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/dbt-labs/dbt",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "a994adfd08995108d79e21a3b1d19e09c9a12463"
},
{
"fixed": "3a5d26fe02b58382720d04cbd87143b7b6775413"
}
],
"database_specific": {
"extracted_events": [
{
"range": [
{
"introduced": "2.0.0-alpha.0"
},
{
"fixed": "2.0.0-alpha.5"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StringRangeExpression"
},
{
"range": [
{
"fixed": "3a5d26fe02b58382720d04cbd87143b7b6775413"
}
],
"source": "REFERENCES_COMMIT"
},
{
"range": [
{
"fixed": "a994adfd08995108d79e21a3b1d19e09c9a12463"
}
],
"source": "REFERENCES_TAG",
"original_tag": "v2.0.0-alpha.5"
}
]
}
}
],
"versions": [
"v1.11.0b4",
"v1.4.0b1",
"v1.3.0b2",
"v1.3.0b1",
"v1.2.0b1",
"v1.1.0b1",
"v1.0.0rc3",
"v1.0.0rc2",
"v1.0.0rc1",
"v1.0.0b2",
"v1.0.0b1",
"v0.21.0b1",
"v0.20.0rc1",
"v0.20.0b1",
"v0.19.0rc2",
"v0.19.0rc1",
"v0.19.0b1",
"v0.18.0",
"v0.18.0rc1",
"v0.18.0b2",
"v0.16.0b3",
"v0.16.0b1",
"v0.15.0",
"0.11.1",
"v0.11.0",
"v0.10.1",
"v0.10.0",
"v0.9.1",
"v0.9.0",
"v0.9.0a2",
"v0.9.0a1",
"v0.8.3",
"v0.8.2",
"v0.8.1",
"v0.8.0",
"v0.7.1",
"v0.7.0",
"v0.6.2",
"v0.6.1",
"v0.6.0",
"0.5.2",
"v0.5.1",
"v0.5.0",
"v0.4.7",
"0.4.1",
"v0.4.0",
"0.3.0",
"v0.2.3.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-100406.json"
}
}
],
"modified": "2026-10-28T02:30:49.508649703Z",
"provider": "osv",
"references": [
"https://github.com/dbt-labs/dbt/releases/tag/v2.0.0-alpha.5",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/100xxx/CVE-2026-100406.json",
"https://github.com/dbt-labs/dbt/security/advisories/GHSA-h2j2-2r7g-rff8",
"https://nvd.nist.gov/vuln/detail/CVE-2026-100406",
"https://github.com/dbt-labs/dbt/commit/3a5d26fe02b58382720d04cbd87143b7b6775413"
],
"provider_metadata": {
"cwe_ids": [
"CWE-200",
"CWE-22",
"CWE-306"
],
"cna_assigner": "GitHub_M",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/100xxx/CVE-2026-100406.json"
}
},
"related_cves": [
{
"value": "CVE-2026-100406",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 518062,
"published_at": "2026-10-14T18:27:24.863+00:00"
}