Borehole · Project · free tier
cube-js/cube
Free reading: not for reliance
1705458 · 11,687 commits · 5,440 files
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.

DimensionRating
Architecture & Codebase — including AI provenancestrong
Engineering Process & SDLC Maturitystrong
Product & Engineering Maturitystrong
Security & Reliability Postureadequate
Observability & Operationsstrong
Fit with the Acquirernot assessable

Architecture & Codebase — including AI provenance

strong
01.6

rust/cubesql/cubesql/src/compile/mod.rs is 19,797 lines, 238× this codebase's median file

adequate

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

Evidence
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

strong
02.16

Tests are retried until they pass

adequate

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

Product & Engineering Maturity

strong
04.38

5 files still carry code deprecated more than two years ago

adequate

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

Evidence
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

adequate
05.1

1 credential-shaped string committed to the tree

adequate

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

Evidence
JWT pattern matched
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
rust/cubestore/Dockerfile — runs as root
05.25

1 environment file is committed

adequate

packages/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.

Evidence
packages/cubejs-playground/.env — committed environment file
05.27

The build runs third-party code it does not pin

adequate

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

Evidence
.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
05.20

11 SQL statements built from strings

adequate

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

05.26

80 locked dependencies have published vulnerabilities, 54 high or critical

adequate

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

Evidence
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
05.49

The production build publishes source maps

adequate

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

Evidence
rollup.config.js:69 — source maps in a production build
05.65

5 advisories against this project in the last 24 months, 4 high or critical

adequate

The 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, …).

Evidence
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

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