Borehole · Project · free tier
gristlabs/grist-core
Free reading: not for reliance
1c2c7c8 · 5,195 commits · 2,628 files
Read 2026-11-03

gristlabs/grist-core: technical due diligence, read from its repository

What Borehole read in gristlabs/grist-core's code and history at 1c2c7c8: 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 Maturityadequate
Security & Reliability Postureadequate
Observability & Operationsstrong
Fit with the Acquirernot assessable

Architecture & Codebase — including AI provenance

strong
01.6

app/gen-server/lib/homedb/HomeDBManager.ts is 5,810 lines, 44× this codebase's median file

adequate

The median source file here is 132 lines. 22 files exceed 1,320 lines, the largest being 5,810. 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
app/gen-server/lib/homedb/HomeDBManager.ts:1 — 5,810 lines (44× median)
app/server/lib/ActiveDoc.ts:1 — 3,927 lines (29× median)
app/server/lib/GranularAccess.ts:1 — 3,589 lines (27× median)
app/server/lib/FlexServer.ts:1 — 3,202 lines (24× median)
app/client/aclui/AccessRules.ts:1 — 2,653 lines (20× median)

Engineering Process & SDLC Maturity

strong
02.16

Tests are retried until they pass

adequate

The suite is configured to retry failing tests (test/nbrowser/gristUtils.ts). A retry turns a flaky test green without saying why it failed, so a green build means the tests passed eventually. Ask how many retries a typical run needs, and which tests need them.

Evidence
test/nbrowser/gristUtils.ts:4126 — test retry

Product & Engineering Maturity

adequate
04.3

108 direct dependencies in a single manifest

adequate

package.json declares 108 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.

Evidence
package.json — 108 declared
04.14

2 jobs are each done by more than one library

adequate

Within a single package: HTTP clients: axios, node-fetch; utility belts: lodash, underscore. 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
package.json — several libraries per job

Security & Reliability Posture

adequate
05.5

1 credential-shaped string added in the history sit in tests, examples, documentation or local development settings

adequate

Strings shaped like credentials appear only where fakes are usual: test fixtures, examples, documentation, placeholders and local stacks. They are almost always fakes. Ask someone to confirm that none of them works anywhere, because a real key in a development file is still a real key.

Evidence
private key block, where fakes are usual
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.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.

Evidence
.github/workflows/cla.yml:22 — action pinned by tag
.github/workflows/docker.yml:78 — action pinned by tag
05.20

6 SQL statements built from strings

adequate

6 places in product code build SQL by formatting or joining strings rather than passing parameters. 1 of them put a value into the string; in the rest, what the code shows going in is a table or column name, a constant, or something the line does not show. Ask whether any value reaches these strings, rather than a parameter.

Evidence
app/gen-server/lib/Housekeeper.ts:232 — SQL built from a string
app/server/lib/DocStorage.ts:1203 — SQL built from a string
app/server/lib/DocStorage.ts:1213 — SQL built from a string
05.22

6 deserialisers that can run code

adequate

6 places read data with a deserialiser that executes what it reads (Python `marshal`). 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
app/common/marshal.ts:477 — code-executing deserialiser
app/server/lib/DocStorage.ts:579 — code-executing deserialiser
app/server/lib/DocStorage.ts:1005 — code-executing deserialiser
05.26

44 locked dependencies have published vulnerabilities, 37 high or critical

adequate

44 of 1,591 locked dependencies match 109 published advisories in OSV, 37 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. This lockfile pins development tools alongside what ships and does not say which is which, so some of these may never reach a user.

Evidence
yarn.lock — decompress 4.2.1: GHSA-hrh2-vp3x-79xf (critical)
yarn.lock — basic-ftp 5.3.1: GHSA-c475-qrg2-pj4r (high), fixed in 6.2.1
yarn.lock — body-parser 1.20.3: GHSA-27r3-jxmh-p828 (high), fixed in 1.20.9
05.65

10 advisories against this project in the last 24 months, 7 high or critical

adequate

The newest was published on 2026-09-13. A project that publishes advisories is telling its users about its fixes, and the count and pace say how much security work it carries. None of them affects the surveyed version.

Evidence
2026-09-13: GHSA-9x4j-4rw5-3vmq (critical), fixed in 1.7.19: RCE through prototype pollution from an imported crafted document
2026-06-19: GHSA-w2hc-w6cg-xvh9 (moderate), fixed in 1.7.15: Insufficient access control in the /forms endpoint exposes table metadata
2026-06-19: GHSA-7f6v-vghq-34xq (high), fixed in 1.7.15: DOM-based XSS in Grist via unsanitized links, enabling privilege escalation
2026-06-17: GHSA-6qrq-h2h6-cw54 (high), fixed in 1.7.15: XSS through unsafe value interpolation in server-rendered pages
2026-01-21: GHSA-7xvx-8pf2-pv5g (critical), fixed in 1.7.9: pyodide sandbox option is insecure

Observability & Operations

strong
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

3 of 8 deployed images carry no version, or `latest`

adequate

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

Fit with the Acquirer

not assessable

Not rated: structurally not assessable from a repository.

Read more, or read your own

The full report on gristlabs/grist-core: 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.