Borehole · Project · free tier
jqlang/jq
Free reading: not for reliance
9a75bb0 · 1,951 commits · 433 files
Read 2026-10-04

jqlang/jq: technical due diligence, read from its repository

What Borehole read in jqlang/jq's code and history at 9a75bb0: 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 & Operationsnot assessable
Fit with the Acquirernot assessable

What the repository says

  • .gitmodules:1: 1 submodule(s) this survey does not read: vendor/oniguruma

Architecture & Codebase — including AI provenance

strong
01.6

src/jv_dtoa.c is 4,277 lines, 125× this codebase's median file

adequate

The median source file here is 34 lines. 6 files exceed 1,000 lines, the largest being 4,277. 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
src/jv_dtoa.c:1 — 4,277 lines (125× median)
src/jv.c:1 — 2,191 lines (64× median)
src/builtin.c:1 — 2,162 lines (63× median)
src/compile.c:1 — 1,399 lines (41× median)
src/execute.c:1 — 1,347 lines (39× median)

Engineering Process & SDLC Maturity

strong
02.6

Almost no process scaffolding exists in the repository

adequate

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

Evidence
1 of 5 markers present across 433 tracked files

Product & Engineering Maturity

strong
04.5

Effort is shifting from building to rewriting

adequate

Deleted lines per line added rose from 0.38 to 0.82 between the first and second halves of this history. Rework is normal and often healthy, but a rising ratio means an increasing share of the team's time is spent replacing code that already exists rather than building what does not. Whether that is deliberate repayment or churn is a question for the team.

Evidence
first half 0.38, second half 0.82 (split 2019-08-23)

Security & Reliability Posture

adequate
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

7 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/ci.yml:219 — action pinned by tag
.github/workflows/ci.yml:334 — action pinned by tag
05.65

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

adequate

The newest was published on 2026-06-16. 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 2 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.8.2. Answer lives in: the release you run, set against each fixed version. The record is incomplete: NVD: 3 records name jq with nothing tying them to this repository (CVE-2015-8863, CVE-2016-4074, CVE-2026-18038).

Evidence
2026-06-16: GHSA-29gj-222p-j7vx (moderate), fixed in 1.8.2: potential integer overflow in jvp_string_append
2026-06-08: GHSA-cfh2-vwfq-qfmm (high), fixed in 1.8.2: jq --rawfile invalid-state reuse after String too long causes heap-buffer-overflow
2026-05-24: GHSA-gvwx-xj9r-3frq (low), fixed in 1.8.2: Pointer-arithmetic UB in jvp_utf8_backtrack (jv_unicode.c:18) — sibling of GHSA-ggc9-rpv2-xgpm
2026-05-24: GHSA-ggc9-rpv2-xgpm (low), fixed in 1.8.2: Pointer-arithmetic UB in jvp_utf8_next (jv_unicode.c:44) — C11 §6.5.6/8
2026-05-22: GHSA-3pgx-frr7-3jxp (moderate), fixed in 1.8.2: stack overflow in deep structural equality

Observability & Operations

not assessable

Not rated: only 4 of 16 checks could reach a conclusion here; the rest do not apply to this repository or could not read it.

Fit with the Acquirer

not assessable

Not rated: structurally not assessable from a repository.

Read more, or read your own

The full report on jqlang/jq: 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.