{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "introduced": "2.0.0-alpha.0"
              },
              {
                "fixed": "2.0.0-alpha.5"
              }
            ],
            "source": [
              "AFFECTED_FIELD",
              "REFERENCES"
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "3a5d26fe02b58382720d04cbd87143b7b6775413"
            },
            {
              "fixed": "a994adfd08995108d79e21a3b1d19e09c9a12463"
            }
          ],
          "repo": "https://github.com/dbt-labs/dbt",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-h2j2-2r7g-rff8"
  ],
  "database_specific": {
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
      "CWE-200",
      "CWE-22",
      "CWE-306"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/100xxx/CVE-2026-100406.json"
  },
  "details": "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.",
  "id": "CVE-2026-100406",
  "modified": "2026-10-16T02:30:48.819864576Z",
  "published": "2026-10-14T18:27:24.863Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://github.com/dbt-labs/dbt/releases/tag/v2.0.0-alpha.5"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/100xxx/CVE-2026-100406.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/dbt-labs/dbt/security/advisories/GHSA-h2j2-2r7g-rff8"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-100406"
    },
    {
      "type": "FIX",
      "url": "https://github.com/dbt-labs/dbt/commit/3a5d26fe02b58382720d04cbd87143b7b6775413"
    }
  ],
  "schema_version": "1.9.0",
  "severity": [
    {
      "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",
      "type": "CVSS_V4"
    }
  ],
  "summary": "dbt: Unauthenticated Arbitrary SQL Execution in `dbt docs serve`"
}