Borehole · Project · free tier
dbt-labs/dbt
Free reading: not for reliance
e7c3c72 · 11,654 commits · 6,023 files
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.

DimensionRating
Architecture & Codebase — including AI provenancestrong
Engineering Process & SDLC Maturitystrong
Product & Engineering Maturitystrong
Security & Reliability Postureadequate
Observability & Operationsnot assessable
Fit with the Acquirernot assessable

What the repository says

  • Releases are cut from another branch than the one surveyed

Architecture & Codebase — including AI provenance

strong
01.6

crates/dbt-metricflow/src/lib.rs is 11,634 lines, 171× this codebase's median file

adequate

The 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.

Engineering Process & SDLC Maturity

strong

No finding.

Product & Engineering Maturity

strong
04.62

Releases are cut from another branch than the one surveyed

adequate

The 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.

Evidence
tag v2.0.8

Security & Reliability Posture

adequate
05.1

2 credential-shaped strings in the tree sit in tests, examples, documentation or local development settings

adequate

Strings 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.

Evidence
GitHub token, where fakes are usual
JWT, where fakes are usual
05.6

3 Dockerfiles run the application as root

adequate

No 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.

05.27

The build runs third-party code it does not pin

adequate

21 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.

Evidence
.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
05.26

13 locked dependencies have published vulnerabilities, 17 high or critical

adequate

13 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.

Evidence
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
05.9

3 vendored components with no licence

adequate

Third-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.

05.65

11 advisories against this project in the last 24 months, 5 high or critical

adequate

The 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).

Evidence
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 assessable
06.9

No error reporter is wired in

adequate

Nothing 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.

Evidence
no error reporter initialised

Fit with the Acquirer

not assessable

Not 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.