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.
| Dimension | Rating |
|---|---|
| Architecture & Codebase — including AI provenance | adequate |
| Engineering Process & SDLC Maturity | adequate |
| Product & Engineering Maturity | adequate |
| Security & Reliability Posture | adequate |
| Observability & Operations | adequate |
| Fit with the Acquirer | not 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
adequateshared/bigcapital-utils/src/countries/constant.ts is 2,261 lines, 44× this codebase's median file
adequateThe 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.
shared/bigcapital-utils/src/countries/constant.ts:1 — 2,261 lines (44× median) |
packages/server/src/modules/EE/AuditLogs/subscribers/FinancialAuditLog.subscriber.ts:1 — 1,494 lines (29× median) |
packages/webapp/src/routes/dashboard.tsx:1 — 1,331 lines (26× median) |
packages/server/src/modules/FinancialStatements/modules/BalanceSheet/BalanceSheet.swagger.ts:1 — 1,238 lines (24× median) |
packages/server/src/modules/FinancialStatements/modules/GeneralLedger/GeneralLedger.swagger.ts:1 — 1,169 lines (22× median) |
1 base image floats: no version, or `latest`
adequate1 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.
docker/migration/Dockerfile:1 — base image without a version |
Engineering Process & SDLC Maturity
adequateTests cover a thin slice of the codebase
adequate187 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.
| 187 test files / 5,639 source files |
2 committed .only switches other tests off
adequate2 test files commit a focused `.only`, which runs that test and silently skips the rest of its suite.
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 |
8% of recent commits change more than 2,000 lines
adequate72 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.
| 72 commits over 2,000 lines |
Product & Engineering Maturity
adequate125 direct dependencies in a single manifest
adequatepackages/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.
packages/webapp/package.json — 125 declared |
packages/server/package.json — 105 declared |
shared/pdf-templates/package.json — 19 declared |
shared/email-components/package.json — 8 declared |
Node.js 18 is past end of life
adequateThe 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.
.nvmrc — Node.js 18, end of life 2025-04-30 |
17% of bug fixes add or change a test
adequateOf 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.
| 71 of 407 |
2 jobs are each done by more than one library
adequateWithin 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.
packages/server/package.json — several libraries per job |
packages/webapp/package.json — several libraries per job |
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 13,876 tracked files; 0 present |
4 Dockerfiles run 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.
docker/mariadb/Dockerfile — runs as root |
docker/migration/Dockerfile — runs as root |
docker/redis/Dockerfile — runs as root |
packages/webapp/Dockerfile — runs as root |
The build runs third-party code it does not pin
adequate6 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.
.github/workflows/build-deploy-container.yml:32 — action pinned by tag |
.github/workflows/build-deploy-container.yml:36 — action pinned by tag |
17 of 139 migrations cannot be rolled back
adequate17 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.
packages/server/src/database/system/migrations/20240222134235_create_plaid_items_table.js:15 — migration with no way back |
packages/server/src/database/system/migrations/20240222134235_seed_free_subscription_to_tenants.js:7 — migration with no way back |
packages/server/src/database/system/migrations/20240425100821_add_confirmation_columns_to_users.js:12 — migration with no way back |
95 locked dependencies have published vulnerabilities, 83 high or critical in what ships
adequate95 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.
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 |
33 places insert HTML from a variable without sanitising it
adequate33 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.
packages/webapp/src/containers/Dialogs/WarehouseActivateDialog/WarehouseActivateFormContent.tsx:13 — HTML from a variable |
packages/webapp/src/containers/Items/ItemFormBasicSection.tsx:32 — HTML from a variable |
packages/webapp/src/containers/Items/ItemFormBasicSection.tsx:41 — HTML from a variable |
Relicensed: GPL-2.0 → AGPL-3.0 (2023-04-05)
adequateThe 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.
85 files are named as enterprise-edition code
adequateFiles 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.
packages/server/src/modules/EE/AuditLogs/AuditLog.service.ts — enterprise-edition file |
packages/server/src/modules/EE/AuditLogs/AuditLogs.controller.ts — enterprise-edition file |
packages/server/src/modules/EE/AuditLogs/AuditLogs.module.ts — enterprise-edition file |
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 5,775 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 |
2 of 7 deployed images carry no version, or `latest`
adequate2 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.prod.yml:23 — image without a version |
docker-compose.prod.yml:32 — 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 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.