Borehole · Project · free tier
bigcapitalhq/bigcapital
Free reading: not for reliance
04a3a9f · 5,227 commits · 13,876 files
Read 2026-10-23

bigcapitalhq/bigcapital: technical due diligence, read from its repository

What Borehole read in bigcapitalhq/bigcapital's code and history at 04a3a9f: 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 provenanceadequate
Engineering Process & SDLC Maturityadequate
Product & Engineering Maturityadequate
Security & Reliability Postureadequate
Observability & Operationsadequate
Fit with the Acquirernot assessable

What the repository says

  • LICENSE: Relicensed: GPL-2.0 → AGPL-3.0 (2023-04-05)
  • packages/server/src/modules/EE/AuditLogs/AuditLog.service.ts: 85 files are named as enterprise-edition code

Architecture & Codebase — including AI provenance

adequate
01.6

shared/bigcapital-utils/src/countries/constant.ts is 2,261 lines, 44× this codebase's median file

adequate

The median source file here is 51 lines. 5 files exceed 1,000 lines, the largest being 2,261. 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.

01.25

1 base image floats: no version, or `latest`

adequate

1 of 7 `FROM` lines in product Dockerfiles name an image without a version, or with `latest`. Each build pulls whatever the registry serves that day, so the image that ships can change without a commit, and last month's build cannot be reproduced. Pin a version, or a digest.

Evidence
docker/migration/Dockerfile:1 — base image without a version

Engineering Process & SDLC Maturity

adequate
02.3

Tests cover a thin slice of the codebase

adequate

187 test files against 5,639 source files (3.3%). 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
187 test files / 5,639 source files
02.15

2 committed .only switches other tests off

adequate

2 test files commit a focused `.only`, which runs that test and silently skips the rest of its suite.

Evidence
packages/server/test/items.e2e-spec.ts:10 — committed .only: other tests do not run
packages/server/test/vendors.e2e-spec.ts:5 — committed .only: other tests do not run
02.24

8% of recent commits change more than 2,000 lines

adequate

72 of 874 commits in the last 24 months changed over 2,000 lines of code, not counting reformatting, renames, vendored or generated code. A change that size is rarely reviewed line by line. Ask how they were reviewed, and what made them that large.

Evidence
72 commits over 2,000 lines

Product & Engineering Maturity

adequate
04.3

125 direct dependencies in a single manifest

adequate

packages/webapp/package.json declares 125 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.

04.17

Node.js 18 is past end of life

adequate

The code is pinned to Node.js 18 (end of life 2025-04-30). None of these receives security fixes any more; the first stopped on 2025-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
.nvmrc — Node.js 18, end of life 2025-04-30
04.19

17% of bug fixes add or change a test

adequate

Of 407 fixes in the last 24 months, 71 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
71 of 407
04.14

2 jobs are each done by more than one library

adequate

Within a single package: CSS-in-JS: emotion, styled-components; utility belts: lodash, ramda. Each duplicate is bundle size, two ways of doing the same thing in one codebase, and two upgrade paths to maintain. It is usually the residue of a migration that stopped halfway.

Evidence
packages/server/package.json — several libraries per job
packages/webapp/package.json — several libraries per job

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 13,876 tracked files; 0 present
05.6

4 Dockerfiles run 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/mariadb/Dockerfile — runs as root
docker/migration/Dockerfile — runs as root
docker/redis/Dockerfile — runs as root
packages/webapp/Dockerfile — runs as root
05.27

The build runs third-party code it does not pin

adequate

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

05.17

17 of 139 migrations cannot be rolled back

adequate

17 schema migrations (12%) have no working way back: an empty `downgrade`, a `down` that does nothing, or a data migration with no reverse. A bad deploy that includes one is recovered from a backup, not reverted. Ask when a restore was last rehearsed.

05.26

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

adequate

95 of 2,835 locked dependencies match 214 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
pnpm-lock.yaml — tar 6.2.1: GHSA-23hp-3jrh-7fpw (critical), fixed in 7.5.19
pnpm-lock.yaml — handlebars 4.7.8: GHSA-2w6w-674q-4c4q (critical), fixed in 4.7.9; a development dependency
pnpm-lock.yaml — tinypool 1.0.1: GHSA-5gmw-xhrv-c9v3 (critical), fixed in 2.1.1; reached only by the build
05.48

33 places insert HTML from a variable without sanitising it

adequate

33 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-2.0 → AGPL-3.0 (2023-04-05)

adequate

The root licence changed 1 time(s). The latest terms restrict what users, hosts or a buyer may do in ways the earlier ones did not. Code taken under the old terms stays under them, so both matter in diligence.

Evidence
LICENSE — GPL-2.0 from 2023-03-27
LICENSE — AGPL-3.0 from 2023-04-05
05.61

85 files are named as enterprise-edition code

adequate

Files named `.ee.` are, by the common open-core convention, the paid edition's code, usually under a licence that is not open source even where the rest is. What the buyer may do with each part differs.

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 5,775 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

2 of 7 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
docker-compose.prod.yml:23 — image without a version
docker-compose.prod.yml:32 — 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 bigcapitalhq/bigcapital: 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.