Read 2026-10-22
cube-js/cube: technical due diligence, read from its repository
What Borehole read in cube-js/cube's code and history at 1705458: 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 | strong |
| Fit with the Acquirer | not assessable |
Architecture & Codebase — including AI provenance
strongrust/cubesql/cubesql/src/compile/mod.rs is 19,797 lines, 238× this codebase's median file
adequateThe median source file here is 83 lines. 100 files exceed 1,000 lines, the largest being 19,797. 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.
rust/cubesql/cubesql/src/compile/mod.rs:1 — 19,797 lines (238× median) |
rust/cubestore/cubestore-sql-tests/src/tests.rs:1 — 13,627 lines (164× median) |
packages/cubejs-schema-compiler/src/parser/Python3Parser.ts:1 — 10,633 lines (128× median) |
rust/cubestore/cubestore/src/metastore/mod.rs:1 — 8,144 lines (98× median) |
rust/cubestore/cubestore/src/sql/mod.rs:1 — 7,777 lines (93× median) |
Engineering Process & SDLC Maturity
strongTests are retried until they pass
adequateThe suite is configured to retry failing tests (packages/cubejs-schema-compiler/test/integration/mssql/MSSqlDbRunner.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.
packages/cubejs-schema-compiler/test/integration/mssql/MSSqlDbRunner.js:118 — test retry |
Product & Engineering Maturity
strong5 files still carry code deprecated more than two years ago
adequate5 files were marked deprecated over two years ago and still are, the oldest since Dec 2020. A deprecation is a promise to remove. Ask what still depends on these, and whether removing them is scheduled.
packages/cubejs-api-gateway/src/interfaces.ts — deprecated since Dec 2020 |
packages/cubejs-server-core/src/core/types.ts — deprecated since Dec 2020 |
packages/cubejs-backend-shared/src/env.ts — deprecated since Jun 2021 |
packages/cubejs-playground/src/components/AppContext.tsx — deprecated since Jul 2021 |
packages/cubejs-base-driver/src/queue-driver.interface.ts — deprecated since Jan 2024 |
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.
rust/cubestore/Dockerfile — runs as root |
1 environment file is committed
adequatepackages/cubejs-playground/.env is tracked in git. Environment files are where credentials usually live, and committing one usually means nobody decided how secrets reach the running application. Whatever is in it is in the history for good. Check 05.1 says whether it holds anything credential-shaped.
packages/cubejs-playground/.env — committed environment file |
The build runs third-party code it does not pin
adequate19 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; 1 step pipes a download straight into a shell. 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/bridge-tests.yml:27 — action pinned by tag |
.github/workflows/bridge-tests.yml:32 — action pinned by tag |
install-cli.sh:4 — download piped into a shell |
11 SQL statements built from strings
adequate11 places in product code build SQL by formatting or joining strings rather than passing parameters, and in 8 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/cubejs-base-driver/src/BaseDriver.ts:386 — SQL built from a string |
packages/cubejs-cubestore-driver/src/CubeStoreDriver.ts:205 — SQL built from a string |
packages/cubejs-cubestore-driver/src/CubeStoreDriver.ts:214 — SQL built from a string |
80 locked dependencies have published vulnerabilities, 54 high or critical
adequate80 of 4,941 locked dependencies match 141 published advisories in OSV, 54 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.
packages/cubejs-backend-native/Cargo.lock — flatbuffers 2.1.2: GHSA-3jch-9qgp-4844 (critical), fixed in 22.9.29 |
yarn.lock — handlebars 4.7.9: GHSA-8r5x-fm3f-whwj (critical), fixed in 4.7.10 |
yarn.lock — piscina 5.2.0: GHSA-67c8-pqhq-4rmx (critical), fixed in 5.3.2 |
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.
rollup.config.js:69 — source maps in a production build |
5 advisories against this project in the last 24 months, 4 high or critical
adequateThe newest was published on 2026-09-21. 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. The record is incomplete: NVD: 25 records name cube with nothing tying them to this repository (CVE-2006-1100, CVE-2006-1101, CVE-2006-1102, …).
| 2026-09-21: GHSA-mrw5-538h-3298 (high), fixed in 1.4.4: Denial of Service (DoS) via a specially crafted network packet |
| 2026-09-21: GHSA-hfjj-rfm5-6x53 (high), fixed in 1.4.4: SQL Injection in database drivers via a specially crafted request |
| 2026-09-21: GHSA-cfx6-94gc-h774 (high), fixed in 1.4.5: SQL Injection via a specially crafted request in the legacy SQL planner |
| 2026-02-09: GHSA-9vph-2hvm-x66g (moderate), fixed in 1.4.2: Denial of Service (DoS) - An authenticated attacker can crash the server by sending a specially crafted request |
| 2026-02-09: GHSA-v226-32c7-x2v7 (high), fixed in 1.0.14: Privilege escalation via a specially crafted request |
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 10 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.
packages/cubejs-pinot-driver/docker-compose.yml:65 — image without a version |
packages/cubejs-trino-driver/docker-compose.yml:5 — image without a version |
packages/cubejs-vertica-driver/docker-compose.yml:5 — 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 cube-js/cube: 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.