Borehole · Project · free tier
mail-0/zero
Free reading: not for reliance
3613273 · 3,719 commits · 802 files
Read 2026-11-03

mail-0/zero: technical due diligence, read from its repository

What Borehole read in mail-0/zero's code and history at 3613273: 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 Maturityadequate
Security & Reliability Postureadequate
Observability & Operationsadequate
Fit with the Acquirernot assessable

What the repository says

  • LICENSE: Relicensed: MIT → AGPL-3.0 (2025-03-02) → MIT (2025-03-08)

Architecture & Codebase — including AI provenance

strong
01.6

apps/server/src/routes/agent/index.ts is 4,017 lines, 60× this codebase's median file

adequate

The median source file here is 66 lines. 13 files exceed 1,000 lines, the largest being 4,017. 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.

Evidence
apps/server/src/routes/agent/index.ts:1 — 4,017 lines (60× median)
apps/mail/components/create/email-composer.tsx:1 — 2,072 lines (31× median)
apps/mail/components/context/command-palette-context.tsx:1 — 1,926 lines (29× median)
apps/mail/components/icons/icons.tsx:1 — 1,830 lines (27× median)
apps/mail/components/mail/mail-display.tsx:1 — 1,806 lines (27× median)

Engineering Process & SDLC Maturity

strong
02.16

Tests are retried until they pass

adequate

The suite is configured to retry failing tests (packages/testing/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.

Product & Engineering Maturity

adequate
04.3

107 direct dependencies in a single manifest

adequate

apps/mail/package.json declares 107 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/mail/package.json — 107 declared
apps/server/package.json — 66 declared
package.json — 2 declared
04.19

0% of bug fixes add or change a test

adequate

Of 606 fixes in the last 24 months, 2 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
2 of 606

Security & Reliability Posture

adequate
05.6

1 Dockerfile runs 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.

Evidence
docker/db/Dockerfile — runs as root
05.27

The build runs third-party code it does not pin

adequate

4 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. 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/ci.yml:19 — action pinned by tag
.github/workflows/deploy-to-prod-command.yml:35 — action pinned by tag
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. In each, what the code shows going in is a table or column name, a constant, or something the line does not show, not a request's value. Ask whether any value reaches these strings, rather than a parameter.

Evidence
apps/server/src/lib/imap/imap-store.ts:382 — SQL built from a string
apps/server/src/lib/imap/imap-store.ts:879 — SQL built from a string
05.26

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

adequate

71 of 2,178 locked dependencies match 163 published advisories in OSV, 88 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 12.10.3: GHSA-37j7-fg3j-429f (critical), fixed in 20.0.0; a development dependency
pnpm-lock.yaml — tar 7.4.3: GHSA-23hp-3jrh-7fpw (critical), fixed in 7.5.19; reached only by the build
pnpm-lock.yaml — tinypool 0.8.4: GHSA-5gmw-xhrv-c9v3 (critical), fixed in 2.1.1; a development dependency
05.48

4 places insert HTML from a variable without sanitising it

adequate

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

Evidence
apps/mail/components/mail/mail-content.tsx:113 — HTML from a variable
apps/mail/components/ui/chart.tsx:73 — HTML from a variable
apps/mail/lib/email-utils.client.tsx:196 — HTML from a variable
05.60

Relicensed: MIT → AGPL-3.0 (2025-03-02) → MIT (2025-03-08)

adequate

The root licence changed 2 time(s). Code taken under earlier terms stays under them; check which terms any fork or customer relied on.

Evidence
LICENSE — MIT from 2025-02-10
LICENSE — AGPL-3.0 from 2025-03-02
LICENSE — MIT from 2025-03-08
05.65

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

adequate

The newest was published on 2025-06-20. A project that publishes advisories is telling its users about its fixes, and the count and pace say how much security work it carries. None of them affects the surveyed version.

Evidence
2025-06-20: GHSA-34gh-g567-hq85 (high), fixed in 0.81: Session Hijacking Via Email

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 686 files for 10 structured logging libraries; 0 matched
06.18

1 of 4 deployed images carry no version, or `latest`

adequate

1 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
docker-compose.prod.yaml:83 — image without a version
06.17

The code branches on the environment's name at 12 places

adequate

12 places outside configuration test whether they are running in production or staging. Staging then does not exercise production's code, and each deploy is the first run of those branches. Differences belong in configuration the code reads, not in the code.

Evidence
apps/mail/app/(auth)/login/login-client.tsx:36 — branch on the environment name
apps/mail/app/(auth)/login/login-client.tsx:73 — branch on the environment name
apps/mail/app/(auth)/login/login-client.tsx:106 — branch on the environment name

Fit with the Acquirer

not assessable

Not rated: structurally not assessable from a repository.

Read more, or read your own

The full report on mail-0/zero: 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.