Read 2026-11-03
saltcorn/saltcorn: technical due diligence, read from its repository
What Borehole read in saltcorn/saltcorn's code and history at a3b5a08: 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 | strong |
| Security & Reliability Posture | adequate |
| Observability & Operations | adequate |
| Fit with the Acquirer | not assessable |
What the repository says
- Releases are cut from another branch than the one surveyed
Architecture & Codebase — including AI provenance
strongpackages/server/public/codemirror.js is 9,814 lines, 516× this codebase's median file
adequateThe median source file here is 19 lines. 55 files exceed 1,000 lines, the largest being 9,814. 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.
packages/server/public/codemirror.js:1 — 9,814 lines (516× median) |
packages/server/routes/admin.ts:1 — 6,293 lines (331× median) |
packages/saltcorn-data/models/table.ts:1 — 5,631 lines (296× median) |
packages/server/routes/tsdecls/lib.es5.d.ts:1 — 4,602 lines (242× median) |
packages/saltcorn-data/plugin-helper.ts:1 — 3,669 lines (193× median) |
210 errors caught and discarded in product code
adequate210 places catch an error and do nothing with it, across 138 files (0.5 per thousand lines). Each is a failure the system will not report. They surface later as problems nobody can explain, and they are cheap to fix now.
packages/plugins-loader/cjs/download_utils.cjs:16 — error caught and discarded |
packages/plugins-loader/cjs/index.cjs:16 — error caught and discarded |
packages/plugins-loader/cjs/plugin_installer.cjs:16 — error caught and discarded |
Engineering Process & SDLC Maturity
strongAlmost no process scaffolding exists in the repository
adequateOf five ordinary markers — CI workflows, CODEOWNERS, a pull-request template, pre-commit hooks, contribution guidance — 1 is present: CI workflows. Branch protection itself is a GitHub setting rather than a file, so this is a reading of proxies and not of the rules themselves. What it does establish is that the process is not written down anywhere a new engineer would find it.
| 1 of 5 markers present across 2,056 tracked files |
Tests are retried until they pass
adequateThe suite is configured to retry failing tests (deploy/playwright/playwright.config.js). 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.
deploy/playwright/playwright.config.js:21 — test retry |
Product & Engineering Maturity
strongNode.js 20 is past end of life
adequateThe code is pinned to Node.js 20 (end of life 2026-04-30). None of these receives security fixes any more; the first stopped on 2026-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.
packages/saltcorn-mobile-builder/docker/Dockerfile — Node.js 20, end of life 2026-04-30 |
Releases are cut from another branch than the one surveyed
adequateThe newest release, v1.6.2, is not on the branch this survey read; the newest release on it is v1.6.0. The shipped product may differ from what this report describes. Survey the release branch too.
| tag v1.6.2 |
Security & Reliability Posture
adequate1 credential-shaped string committed to the tree
adequateMatches for JWT appear in tracked files outside test and fixture paths. They stay in the history even after they leave the tree, so what matters is whether each was rotated. The code cannot tell whether any of them is live, and that decides whether this matters: none sits in production configuration, and none is in a format its provider keeps for live keys. Is any of these live? Show that each was rotated after it was committed, and when.
| JWT pattern matched |
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.
packages/saltcorn-mobile-builder/docker/Dockerfile — runs as root |
45 SQL statements built from strings
adequate45 places in product code build SQL by formatting or joining strings rather than passing parameters, and in 7 of them a value, not a table or column name, goes into the string. Where any of those values comes from a request, it is an injection point. Each site needs a look; the fix, parameters, is small.
packages/postgres/postgres.ts:711 — SQL built from a string |
packages/postgres/postgres.ts:724 — SQL built from a string |
packages/postgres/postgres.ts:737 — SQL built from a string |
3 shell commands built from strings
adequate3 places run a command through a shell (`shell=True`, `os.system`, `exec` with a template) rather than passing arguments. Where any part comes from outside, it is command injection. Ask where each one's input comes from.
packages/saltcorn-cli/src/commands/backup.js:109 — command run through a shell |
packages/saltcorn-data/model-helper.ts:171 — command run through a shell |
packages/saltcorn-data/utils.ts:778 — command run through a shell |
27 locked dependencies have published vulnerabilities, 40 high or critical in what ships
adequate27 of 1,521 locked dependencies match 110 published advisories in OSV, 41 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.
packages/saltcorn-cli/npm-shrinkwrap.json — dompurify 3.4.9: GHSA-cg2g-xh64-v4q7 (critical), fixed in 3.4.17 |
packages/saltcorn-cli/npm-shrinkwrap.json — fast-jwt 4.0.5: GHSA-gmvf-9v4p-v8jc (critical), fixed in 6.2.4 |
packages/saltcorn-cli/npm-shrinkwrap.json — tar 6.2.1: GHSA-23hp-3jrh-7fpw (critical), fixed in 7.5.19 |
91 places insert HTML from a variable without sanitising it
adequate91 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/saltcorn-builder/src/components/elements/Field.js:75 — HTML from a variable |
packages/saltcorn-builder/src/components/elements/HTMLCode.js:38 — HTML from a variable |
packages/saltcorn-builder/src/components/elements/HTMLCode.js:54 — HTML from a variable |
The production build publishes source maps
adequateThe build configuration emits source maps for production, so the original source, with its comments and structure, is downloadable by every visitor. Upload them to an error tracker and keep them off the public server instead.
packages/filemanager/rollup.config.js:38 — source maps in a production build |
packages/workflow-editor/webpack.config.js:38 — source maps in a production build |
1 vendored component with no licence
adequateThird-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.
packages/server/public/ckeditor/vendor/promise.js — 1 tracked files, no licence file |
11 advisories against this project in the last 24 months, 9 high or critical
adequateThe newest was published on 2026-08-06. A project that publishes advisories is telling its users about its fixes, and the count and pace say how much security work it carries. Whether 10 of them are fixed in the code you ship could not be told from this history: its version is only known to be at least 1.6.0. Answer lives in: the release you run, set against each fixed version.
| 2026-08-06: GHSA-8jg8-7c8w-x873 (high), fixed in 1.6.1: Unauthenticated JavaScript code injection into server-side expression evaluation via crafted request body keys (`isValidJsIdentifier` bypass) |
| 2026-08-06: GHSA-j86v-82rx-c23w (critical), fixed in 1.6.1: Stored XSS in as_link field view via unvalidated javascript: href |
| 2026-08-06: GHSA-rqhj-cx9g-fw5p (high), fixed in 1.6.0: Multi-tenant isolation bypass: a session authenticated in one tenant is honored on every other tenant's `/api` routes, exposing other tenants' table data |
| 2026-08-06: GHSA-x5w8-xvw8-x24m (critical), fixed in 1.6.0-rc.4: Reflected XSS and JS Sandbox Escape can be chained for 1-click-RCE |
| 2026-08-05: GHSA-2729-rgj2-rq44 (critical), fixed in 1.5.9: Cross-tenant authorization bypass via malformed authority parsing and missing session-tenant binding |
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 1,739 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 |
6 of 6 deployed images carry no version, or `latest`
adequate6 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.
deploy/incus-install-test/incus-install.yml:17 — image without a version |
deploy/incus-install-test/incus-install.yml:32 — image without a version |
deploy/incus-install-test/incus-install.yml:47 — 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 saltcorn/saltcorn: 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.