Borehole · Project · free tier
matomo-org/matomo
Free reading: not for reliance
7d091be · 31,492 commits · 14,021 files
Read 2026-10-04

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

What Borehole read in matomo-org/matomo's code and history at 7d091be: 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 Maturitystrong
Security & Reliability Posturestrong
Observability & Operationsnot assessable
Fit with the Acquirernot assessable

What the repository says

  • Releases are cut from another branch than the one surveyed
  • .gitmodules:1: 17 submodule(s) this survey does not read: plugins/SecurityInfo, plugins/TreemapVisualization, plugins/VisitorGenerator

Architecture & Codebase — including AI provenance

strong
01.6

plugins/GeoIp2/data/isoRegionNames.php is 48,727 lines, 601× this codebase's median file

adequate

The median source file here is 81 lines. 43 files exceed 1,000 lines, the largest being 48,727. 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
plugins/GeoIp2/data/isoRegionNames.php:1 — 48,727 lines (601× median)
plugins/GeoIp2/data/regionMapping.php:1 — 4,636 lines (57× median)
plugins/CoreVisualizations/javascripts/jqplot.js:1 — 2,444 lines (30× median)
core/DataTable.php:1 — 2,336 lines (28× median)
plugins/SitesManager/API.php:1 — 2,185 lines (26× median)
01.33

A move from JavaScript to TypeScript began 76 months ago and is 40% done

adequate

185 product files are in the new language and 274 are still in the old one, 76 months after the first new file appeared. The new language's share of the lines rose from 0% to 11%, and moved 4 percentage points in the last year. Two languages for one job doubles what an engineer has to know, and the unmoved half is usually what nobody wants to touch. Ask whether finishing it is planned, and what it costs.

Evidence
274 old, 185 new

Engineering Process & SDLC Maturity

strong

No finding.

Product & Engineering Maturity

strong
04.62

Releases are cut from another branch than the one surveyed

adequate

The newest release, 5.14.0, is not on the branch this survey read; the newest release on it is 5.0.3. The shipped product may differ from what this report describes. Survey the release branch too.

Evidence
tag 5.14.0

Security & Reliability Posture

strong
05.27

The build runs third-party code it does not pin

adequate

5 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/buildvue.yml:78 — action pinned by tag
.github/workflows/dependabot_prs.yml:26 — action pinned by tag
05.22

4 deserialisers that can run code

adequate

4 places read data with a deserialiser that executes what it reads (PHP `unserialize`). That is safe on data the system wrote itself and remote code execution on anything else. Ask where each one's input comes from.

Evidence
core/Common.php:309 — code-executing deserialiser
core/Session/SaveHandler/SessionDataMerger.php:61 — code-executing deserialiser
core/Session/SaveHandler/SessionDataMerger.php:102 — code-executing deserialiser
05.48

11 places insert HTML from a variable without sanitising it

adequate

11 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
libs/jqplot/excanvas.min.js:1 — HTML from a variable
libs/jqplot/excanvas.min.js:1 — HTML from a variable
libs/jqplot/excanvas.min.js:1 — HTML from a variable
05.9

2 vendored components with no licence

adequate

Third-party code is committed into this repository without any statement of the terms it arrived under. Unknown terms are harder to deal with than inconvenient ones: an awkward licence can be complied with, an absent one cannot. Each of these needs its origin established before the code changes hands.

Evidence
node_modules/vue — 14 tracked files, no licence file
plugins/UserCountryMap/javascripts/vendor/kartograph.min.js — 1 tracked files, no licence file

Observability & Operations

not assessable

Not rated: only 4 of 16 checks could reach a conclusion here; the rest do not apply to this repository or could not read it.

Fit with the Acquirer

not assessable

Not rated: structurally not assessable from a repository.

Read more, or read your own

The full report on matomo-org/matomo: 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.