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.
| Dimension | Rating |
|---|---|
| Architecture & Codebase — including AI provenance | strong |
| Engineering Process & SDLC Maturity | strong |
| Product & Engineering Maturity | adequate |
| Security & Reliability Posture | adequate |
| Observability & Operations | strong |
| Fit with the Acquirer | not assessable |
Architecture & Codebase — including AI provenance
strongapp/gen-server/lib/homedb/HomeDBManager.ts is 5,810 lines, 44× this codebase's median file
adequateThe 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.
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
strongTests are retried until they pass
adequateThe 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.
test/nbrowser/gristUtils.ts:4126 — test retry |
Product & Engineering Maturity
adequate108 direct dependencies in a single manifest
adequatepackage.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.
package.json — 108 declared |
2 jobs are each done by more than one library
adequateWithin 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.
package.json — several libraries per job |
Security & Reliability Posture
adequate1 credential-shaped string added in the history sit in tests, examples, documentation or local development settings
adequateStrings 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.
| private key block, where fakes are usual |
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 |
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/cla.yml:22 — action pinned by tag |
.github/workflows/docker.yml:78 — action pinned by tag |
6 SQL statements built from strings
adequate6 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.
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 |
6 deserialisers that can run code
adequate6 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.
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 |
44 locked dependencies have published vulnerabilities, 37 high or critical
adequate44 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.
10 advisories against this project in the last 24 months, 7 high or critical
adequateThe 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.
| 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
strongNo 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 |
3 of 8 deployed images carry no version, or `latest`
adequate3 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-examples/grist-with-keycloak-postgres-redis-rustfs/docker-compose.yml:200 — image without a version |
docker-compose-examples/grist-with-keycloak-postgres-redis-rustfs/docker-compose.yml:125 — image without a version |
docker-compose-examples/grist-with-keycloak-postgres-redis-rustfs/docker-compose.yml:133 — 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 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.