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.
| Dimension | Rating |
|---|---|
| Architecture & Codebase — including AI provenance | strong |
| Engineering Process & SDLC Maturity | adequate |
| Product & Engineering Maturity | strong |
| Security & Reliability Posture | adequate |
| Observability & Operations | adequate |
| Fit with the Acquirer | not 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
strongclient/static/fancytree/jquery.fancytree-all.js is 9,227 lines, 139× this codebase's median file
adequateThe 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.
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) |
55 errors caught and discarded in product code
adequate55 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.
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
adequateTests cover a thin slice of the codebase
adequate16 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.
| 16 test files / 346 source files |
Almost no process scaffolding exists in the repository
adequateOf 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.
| 0 of 5 markers present across 701 tracked files |
1 committed .only switches other tests off
adequate1 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.
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
strongNode.js 10 is past end of life
adequateThe 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.
Dockerfile — Node.js 10, end of life 2021-04-30 |
Security & Reliability Posture
adequateNone of the standard security guard rails are configured
adequateThere 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.
| checked 5 kinds of guard rail across 701 tracked files; 0 present |
1 Dockerfile runs the application as root
adequateNo 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.
Dockerfile — runs as root |
101 locked dependencies have published vulnerabilities, 116 high or critical in what ships
adequate101 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.
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 |
34 places insert HTML from a variable without sanitising it
adequate34 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.
client/src/reports/ViewAndOutput.js:38 — HTML from a variable |
client/static/fancytree/jquery.fancytree-all.js:3657 — HTML from a variable |
client/static/fancytree/jquery.fancytree-all.js:5235 — HTML from a variable |
Relicensed: GPL-3.0 → MIT (2016-09-15) → EUPL-1.1 (2017-02-17) → GPL-3.0 (2017-03-02)
adequateThe root licence changed 3 time(s). Code taken under earlier terms stays under them; check which terms any fork or customer relied on.
1 advisory against this project in the last 24 months, 1 high or critical
adequateThe 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.
| 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
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 423 files for 10 structured logging libraries; 0 matched |
No error reporter is wired in
adequateNothing 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.
| no error reporter initialised |
1 of 4 deployed images carry no version, or `latest`
adequate1 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.
docker-compose.yml:25 — 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 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.