Read 2026-10-22
dbt-labs/dbt: technical due diligence, read from its repository
What Borehole read in dbt-labs/dbt's code and history at e7c3c72: its licence, security advisories, releases, review practice, tests, dependencies and operations. Every finding cites the file and line it rests on. The full report also covers the team and asks the questions the code cannot answer.
| Dimension | Rating |
|---|---|
| Architecture & Codebase — including AI provenance | strong |
| Engineering Process & SDLC Maturity | strong |
| Product & Engineering Maturity | strong |
| Security & Reliability Posture | adequate |
| Observability & Operations | not assessable |
| Fit with the Acquirer | not assessable |
What the repository says
- Releases are cut from another branch than the one surveyed
Architecture & Codebase — including AI provenance
strongcrates/dbt-metricflow/src/lib.rs is 11,634 lines, 171× this codebase's median file
adequateThe median source file here is 68 lines. 151 files exceed 1,000 lines, the largest being 11,634. Size is not a defect on its own — some problems genuinely live in one place — but these are where merge conflicts, review fatigue and single-owner knowledge concentrate, and they are the first thing that slows an inheriting engineer down.
crates/dbt-metricflow/src/lib.rs:1 — 11,634 lines (171× median) |
crates/dbt-docs-server/web/src/proto/dbtlabs/proto/v1/fields/core_types_pb.ts:1 — 10,845 lines (159× median) |
crates/dbt-tasks-core/src/run_cache/run_cache_service.rs:1 — 10,446 lines (153× median) |
crates/dbt-schemas/src/schemas/nodes.rs:1 — 8,986 lines (132× median) |
crates/dbt-adapter/src/adapter/adapter_impl.rs:1 — 8,601 lines (126× median) |
Engineering Process & SDLC Maturity
strongNo finding.
Product & Engineering Maturity
strongReleases are cut from another branch than the one surveyed
adequateThe newest release, v2.0.8, is not on the branch this survey read; the newest release on it is v0.19.0. The shipped product may differ from what this report describes. Survey the release branch too.
| tag v2.0.8 |
Security & Reliability Posture
adequate2 credential-shaped strings in the tree sit in tests, examples, documentation or local development settings
adequateStrings shaped like credentials appear only where fakes are usual: test fixtures, examples, documentation, placeholders and local stacks. They are almost always fakes. Ask someone to confirm that none of them works anywhere, because a real key in a development file is still a real key. 1 other match set aside: expired tokens, licence tokens a vendor verifies with a public key, or placeholder text where a key would go. None grants access to anything.
| GitHub token, where fakes are usual |
| JWT, where fakes are usual |
3 Dockerfiles run the application as root
adequateNo USER instruction switches away from root, so the process runs with full privileges inside the container. It is a one-line fix and an ordinary expectation, which is why its absence is worth asking about: it usually says more about whether anyone has reviewed the deployment than about this container specifically.
crates/dbt-test-containers/docker/dbt-core/Dockerfile — runs as root |
crates/dbt-test-containers/docker/dbt/Dockerfile — runs as root |
crates/dbt-test-containers/docker/postgres/Dockerfile — runs as root |
The build runs third-party code it does not pin
adequate21 third-party CI actions are referenced by a tag or branch rather than a commit, so they run whatever that tag points to on the day; 1 step pipes a download straight into a shell. Tags have been moved to malicious commits in real supply-chain attacks, and a piped script is whatever the server returns that minute. Pinning to a commit is the fix, and it is small.
.github/workflows/changelog-existence.yml:36 — action pinned by tag |
.github/workflows/community-label.yml:46 — action pinned by tag |
crates/dbt-jinja/.github/workflows/release.yml:66 — download piped into a shell |
13 locked dependencies have published vulnerabilities, 17 high or critical
adequate13 of 1,007 locked dependencies match 27 published advisories in OSV, 17 of them rated high or critical. A lockfile says which version is installed, not whether the flawed code is reachable from this product, so each needs a look. Most are fixed by an upgrade, and the advisory names the version. None of the high or critical ones is in what the product ships: their lockfile is a separate application (an internal tool, an editor extension), not the product.
crates/dbt-docs-server/dbt-docs-lib/pnpm-lock.yaml — @storybook/addon-vitest 10.5.10: GHSA-f2ph-cmg5-wxc8 (critical), fixed in 10.6.2; in a separate application's lockfile |
crates/dbt-docs-server/dbt-docs-lib/pnpm-lock.yaml — happy-dom 16.8.1: GHSA-37j7-fg3j-429f (critical), fixed in 20.0.0; in a separate application's lockfile |
crates/dbt-docs-server/dbt-docs-lib/pnpm-lock.yaml — storybook 10.5.10: GHSA-f2ph-cmg5-wxc8 (critical), fixed in 10.6.2; in a separate application's lockfile |
3 vendored components with no licence
adequateThird-party code is committed into this repository without any statement of the terms it arrived under. Unknown terms are harder to deal with than inconvenient ones: an awkward licence can be complied with, an absent one cannot. Each of these needs its origin established before the code changes hands.
crates/dbt-docs-server/web/src/proto/dbtlabs/proto/v1/events/fusion/deps/deps_pb.ts — 1 tracked files, no licence file |
crates/dbt-docs-server/web/src/proto/dbtlabs/proto/v1/events/fusion/deps/index.ts — 1 tracked files, no licence file |
crates/dbt-telemetry/include/dbtlabs/proto/public/v1/events/fusion/deps/deps.proto — 1 tracked files, no licence file |
11 advisories against this project in the last 24 months, 5 high or critical
adequateThe newest was published on 2026-10-14. A project that publishes advisories is telling its users about its fixes, and the count and pace say how much security work it carries. Whether 9 of them are fixed in the code you ship could not be told from this history: its version is only known to be at least 2.0.8. Answer lives in: the release you run, set against each fixed version. The record is incomplete: NVD: 2 records name dbt with nothing tying them to this repository (CVE-2024-10586, CVE-2026-49360).
| 2026-10-14: GHSA-xwgp-43x8-639j (high), fixed in 1.11.16: Transitive tarball name escapes download directory and overwrites files |
| 2026-09-14: CVE-2026-55837 (moderate): 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 /db |
| 2026-09-03: GHSA-h364-2v3g-4xm8 (high), fixed in 2.0.0-rc.1: `dbt deps` symlink traversal enables arbitrary file write/overwrite outside `dbt_packages` |
| 2026-09-03: GHSA-wfxc-3pjp-fm6h (moderate), fixed in 2.0.0-rc.1: Security disclosure: vulnerable astral-tokio-tar pin enables creating extra files via `dbt deps` |
| 2026-08-21: GHSA-pxwq-479r-hhwr (high), fixed in 1.11.4 and 1.12.3: DoS in dbt Core SQL compilation via pinned vulnerable sqlparse parser |
Observability & Operations
not assessableNo error reporter is wired in
adequateNothing in the service initialises an error reporter (Sentry, Rollbar, Bugsnag, Honeybadger or an APM agent). An exception in production reaches a person only if someone is reading the logs, which usually means a customer reports it first.
| no error reporter initialised |
Fit with the Acquirer
not assessableNot rated: structurally not assessable from a repository.
Read more, or read your own
The full report on dbt-labs/dbt: every dimension, the questions for the room, and the audit log.
Survey a repository: free on public repositories. Private code is read on your own machine by a collector whose source you can read first.