Read 2026-10-04
dubinc/dub: technical due diligence, read from its repository
What Borehole read in dubinc/dub's code and history at ac13d86: 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 | adequate |
| Product & Engineering Maturity | adequate |
| Security & Reliability Posture | adequate |
| Observability & Operations | adequate |
| Fit with the Acquirer | not assessable |
Architecture & Codebase — including AI provenance
strongCommit messages are templated rather than written
adequate30% of commit subjects are exact repeats of another subject, and subject length varies by only 19.0 characters. A log written by someone explaining their reasoning to a future reader does not look like this. The log is therefore weak evidence of intent, whatever the code is like.
| 475× 'Update route.ts' |
| 111× 'Update page-client.tsx' |
| 94× 'format' |
packages/utils/src/constants/regions.ts is 3,488 lines, 50× this codebase's median file
adequateThe median source file here is 69 lines. 16 files exceed 1,000 lines, the largest being 3,488. 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.
packages/utils/src/constants/regions.ts:1 — 3,488 lines (50× median) |
apps/web/ui/partners/groups/design/previews/portal-preview.tsx:1 — 3,100 lines (44× median) |
apps/web/ui/partners/groups/design/previews/embed-preview.tsx:1 — 1,925 lines (27× median) |
apps/web/app/(ee)/partners.dub.co/(apply)/[programSlug]/(default)/apply/success/screenshot.tsx:1 — 1,585 lines (22× median) |
apps/web/ui/partners/confirm-payouts-sheet.tsx:1 — 1,251 lines (18× median) |
Engineering Process & SDLC Maturity
adequateTests cover a thin slice of the codebase
adequate235 test files against 4,335 source files (5.4%). This does not measure whether the tests are good, only whether enough of them exist for the codebase to be changed safely by someone who did not write it — which is exactly the situation after an acquisition.
| 235 test files / 4,335 source files |
Nothing in the history is tagged as a release
adequateAcross 4.1 years of history there is not one tag. There may still be a deployment process, but this repository holds no record of what shipped when — which is the record a buyer needs to reconstruct an incident or a regression after the fact.
| 0 tags across 26,952 commits and 1491 days |
Almost no process scaffolding exists in the repository
adequateOf five ordinary markers — CI workflows, CODEOWNERS, a pull-request template, pre-commit hooks, contribution guidance — 1 is present: CI workflows. Branch protection itself is a GitHub setting rather than a file, so this is a reading of proxies and not of the rules themselves. What it does establish is that the process is not written down anywhere a new engineer would find it.
| 1 of 5 markers present across 4,670 tracked files |
Tests are retried until they pass
adequateThe suite is configured to retry failing tests (apps/web/playwright.config.ts). A retry turns a flaky test green without saying why it failed, so a green build means the tests passed eventually. Ask how many retries a typical run needs, and which tests need them.
apps/web/playwright.config.ts:16 — test retry |
Product & Engineering Maturity
adequate126 direct dependencies in a single manifest
adequateapps/web/package.json declares 126 direct dependencies. Each one is a maintenance obligation, a supply-chain surface and a potential licence question that transfers with the asset. The count says nothing about whether any given dependency was a good choice; it says how many such choices a buyer inherits.
apps/web/package.json — 126 declared |
packages/ui/package.json — 57 declared |
packages/cli/package.json — 14 declared |
packages/email/package.json — 9 declared |
8% of bug fixes add or change a test
adequateOf 1971 fixes in the last 24 months, 157 touched a test. A fix without the test that would have caught the bug can quietly come back, and the suite never learns from what went wrong.
| 157 of 1971 |
Security & Reliability Posture
adequate2 SQL statements built from strings
adequate2 places in product code build SQL by formatting or joining strings rather than passing parameters. 1 of them put a value into the string; in the rest, what the code shows going in is a table or column name, a constant, or something the line does not show. Ask whether any value reaches these strings, rather than a parameter.
apps/web/lib/analytics/get-analytics.ts:72 — SQL built from a string |
apps/web/app/(ee)/api/cron/streams/update-partner-stats/route.ts:287 — SQL built from a string |
98 locked dependencies have published vulnerabilities, 98 high or critical in what ships
adequate98 of 2,847 locked dependencies match 233 published advisories in OSV, 120 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.
pnpm-lock.yaml — happy-dom 18.0.1: GHSA-37j7-fg3j-429f (critical), fixed in 20.0.0 |
pnpm-lock.yaml — next 15.5.8: GHSA-2xp9-vwfh-vxw4 (critical), fixed in 15.5.24 |
pnpm-lock.yaml — next-auth 4.24.11: GHSA-7rqj-j65f-68wh (critical), fixed in 4.24.15 |
13 places insert HTML from a variable without sanitising it
adequate13 places set HTML from a value that is neither a literal nor passed through a sanitiser. Where the value can come from a user, that is stored cross-site scripting, and it is the first thing a buyer's security review looks for in a frontend.
apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/settings/logs/[logId]/page-client.tsx:237 — HTML from a variable |
apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/settings/logs/[logId]/page-client.tsx:252 — HTML from a variable |
apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/settings/logs/[logId]/page-client.tsx:265 — HTML from a variable |
2 advisories against this project in the last 24 months, 1 high or critical
adequateThe newest was published on 2026-09-04. 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 2 of them are fixed in the code you ship could not be told from this history. Answer lives in: the release you run, set against each fixed version.
| 2026-09-04: CVE-2026-85676 (moderate): Dub contains an open redirect vulnerability in the redir_url query parameter that is accepted on every short link without validation or domain allowlist enforce |
| 2026-08-11: CVE-2026-72552 (high): A server-side request forgery vulnerability in Dub as of 2026-07-10 allows unauthenticated remote attackers to make the server issue HTTP requests to arbitrary |
Observability & Operations
adequateNo structured logging library is in use
adequateNothing references a structured logging library. Logs that are written to be read by a person are not searchable by a machine, which means incident response here is proportional to how well someone remembers the codebase rather than to what the tooling can find.
| searched 4,562 files for 10 structured logging libraries; 0 matched |
2 of 3 deployed images carry no version, or `latest`
adequate2 images in the deployment configuration are named without a version or as `latest`. A redeploy can change the software without a commit, a rollback has nothing to roll back to, and nobody can say from the repository what is running.
apps/web/docker-compose.yml:23 — image without a version |
apps/web/docker-compose.yml:39 — image without a version |
Fit with the Acquirer
not assessableNot rated: structurally not assessable from a repository.
Read more, or read your own
The full report on dubinc/dub: 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.