Borehole · Project · free tier
mailtrain-org/mailtrain
Free reading: not for reliance
7c6f34e · 1,441 commits · 701 files
Read 2026-10-23

mailtrain-org/mailtrain: technical due diligence, read from its repository

What Borehole read in mailtrain-org/mailtrain's code and history at 7c6f34e: 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 Maturitystrong
Security & Reliability Postureadequate
Observability & Operationsadequate
Fit with the Acquirernot assessable

What the repository says

  • LICENSE: Relicensed: GPL-3.0 → MIT (2016-09-15) → EUPL-1.1 (2017-02-17) → GPL-3.0 (2017-03-02)
  • .gitmodules:1: 1 submodule(s) this survey does not read: mvis/ivis-core

Architecture & Codebase — including AI provenance

strong
01.6

client/static/fancytree/jquery.fancytree-all.js is 9,227 lines, 139× this codebase's median file

adequate

The median source file here is 66 lines. 8 files exceed 1,000 lines, the largest being 9,227. 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
client/static/fancytree/jquery.fancytree-all.js:1 — 9,227 lines (139× median)
client/src/lib/form.js:1 — 2,002 lines (30× median)
shared/mosaico-templates.js:1 — 1,877 lines (28× median)
server/setup/knex/migrations/20170506102634_v1_to_v2.js:1 — 1,338 lines (20× median)
server/setup/sql/base.sql:1 — 1,315 lines (19× median)
01.15

55 errors caught and discarded in product code

adequate

55 places catch an error and do nothing with it, across 7 files (0.7 per thousand lines). Each is a failure the system will not report. They surface later as problems nobody can explain, and they are cheap to fix now.

Evidence
client/static/fancytree/jquery.fancytree-all.js:1458 — error caught and discarded
client/static/fancytree/jquery.fancytree-all.js:4153 — error caught and discarded
client/static/fancytree/jquery.fancytree-all.min.js:12 — error caught and discarded

Engineering Process & SDLC Maturity

adequate
02.3

Tests cover a thin slice of the codebase

adequate

16 test files against 346 source files (4.6%). 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
16 test files / 346 source files
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 — none are present. 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
0 of 5 markers present across 701 tracked files
02.15

1 committed .only switches other tests off

adequate

1 test file commits a focused `.only`, which runs that test and silently skips the rest of its suite. 1 skip markers across 1 of 22 test files. Each is a failure somebody chose to stop seeing; the question is whether anyone is tracking them.

Evidence
server/test/e2e/lib/mocha-e2e.js:177 — committed .only: other tests do not run
server/test/e2e/lib/mocha-e2e.js:179 — skipped test

Product & Engineering Maturity

strong
04.17

Node.js 10 is past end of life

adequate

The code is pinned to Node.js 10 (end of life 2021-04-30). None of these receives security fixes any more; the first stopped on 2021-04-30. Moving off an unsupported runtime is rarely a one-line change, so a buyer should ask whether the upgrade is planned and what it touches.

Evidence
Dockerfile — Node.js 10, end of life 2021-04-30

Security & Reliability Posture

adequate
05.2

None of the standard security guard rails are configured

adequate

There is no disclosure policy, no automated dependency updates, no named code owners and no pre-commit configuration. None of these is load-bearing on its own. Their collective absence says that security posture here is whatever the current team happens to remember to do, which is not a posture that survives the team changing.

Evidence
checked 5 kinds of guard rail across 701 tracked files; 0 present
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
Dockerfile — runs as root
05.26

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

adequate

101 of 1,580 locked dependencies match 208 published advisories in OSV, 116 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
server/package-lock.json — babel-traverse 6.26.0: GHSA-67hx-6x53-jw92 (critical)
server/package-lock.json — fsevents 1.2.4: GHSA-8r6j-v8pm-fqw3 (critical), fixed in 1.2.11
server/package-lock.json — getobject 0.1.0: GHSA-957j-59c2-j692 (critical), fixed in 1.0.0
05.48

34 places insert HTML from a variable without sanitising it

adequate

34 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.60

Relicensed: GPL-3.0 → MIT (2016-09-15) → EUPL-1.1 (2017-02-17) → GPL-3.0 (2017-03-02)

adequate

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

Evidence
LICENSE — GPL-3.0 from 2016-04-04
LICENSE — MIT from 2016-09-15
LICENSE — EUPL-1.1 from 2017-02-17
LICENSE — GPL-3.0 from 2017-03-02
05.65

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

adequate

The newest was published on 2021-02-19. 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 1 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.20210609.0. Answer lives in: the release you run, set against each fixed version.

Evidence
2021-02-19: CVE-2020-24617 (high): Mailtrain through 1.24.1 allows SQL Injection in statsClickedSubscribersByColumn in lib/models/campaigns.js via /campaigns/clicked/ajax because variable column

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 423 files for 10 structured logging libraries; 0 matched
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
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.yml:25 — 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 mailtrain-org/mailtrain: 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.