Borehole · Project · free tier
dubinc/dub
Free reading: not for reliance
ac13d86 · 26,952 commits · 4,670 files
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.

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

Architecture & Codebase — including AI provenance

strong
01.3

Commit messages are templated rather than written

adequate

30% 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.

Evidence
475× 'Update route.ts'
111× 'Update page-client.tsx'
94× 'format'
01.6

packages/utils/src/constants/regions.ts is 3,488 lines, 50× this codebase's median file

adequate

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

Engineering Process & SDLC Maturity

adequate
02.3

Tests cover a thin slice of the codebase

adequate

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

Evidence
235 test files / 4,335 source files
02.4

Nothing in the history is tagged as a release

adequate

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

Evidence
0 tags across 26,952 commits and 1491 days
02.6

Almost no process scaffolding exists in the repository

adequate

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

Evidence
1 of 5 markers present across 4,670 tracked files
02.16

Tests are retried until they pass

adequate

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

Evidence
apps/web/playwright.config.ts:16 — test retry

Product & Engineering Maturity

adequate
04.3

126 direct dependencies in a single manifest

adequate

apps/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.

Evidence
apps/web/package.json — 126 declared
packages/ui/package.json — 57 declared
packages/cli/package.json — 14 declared
packages/email/package.json — 9 declared
04.19

8% of bug fixes add or change a test

adequate

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

Evidence
157 of 1971

Security & Reliability Posture

adequate
05.20

2 SQL statements built from strings

adequate

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

05.26

98 locked dependencies have published vulnerabilities, 98 high or critical in what ships

adequate

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

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

13 places insert HTML from a variable without sanitising it

adequate

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

05.65

2 advisories against this project in the last 24 months, 1 high or critical

adequate

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

Evidence
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

adequate
06.2

No structured logging library is in use

adequate

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

Evidence
searched 4,562 files for 10 structured logging libraries; 0 matched
06.18

2 of 3 deployed images carry no version, or `latest`

adequate

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

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

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