Borehole · Project · free tier
stirling-tools/stirling-pdf
Free reading: not for reliance
b08fbe5 · 6,233 commits · 8,293 files
Read 2026-10-04

stirling-tools/stirling-pdf: technical due diligence, read from its repository

What Borehole read in stirling-tools/stirling-pdf's code and history at b08fbe5: 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 Maturityadequate
Product & Engineering Maturitystrong
Security & Reliability Postureadequate
Observability & Operationsadequate
Fit with the Acquirernot assessable

What the repository says

  • LICENSE: Relicensed: Apache-2.0 → GPL-3.0 (2023-05-20) → MIT (2024-09-02)
  • app/proprietary/src/main/java/stirling/software/proprietary/security/configuration/ee/DatabaseLicenseGuard.java: 5 files are named as enterprise-edition code
  • README.md:17: names OpenSSF

Architecture & Codebase — including AI provenance

strong
01.6

app/core/src/main/java/stirling/software/SPDF/service/PdfJsonConversionService.java is 6,959 lines, 79× this codebase's median file

adequate

The median source file here is 88 lines. 44 files exceed 1,000 lines, the largest being 6,959. 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.

Engineering Process & SDLC Maturity

adequate
02.16

Tests are retried until they pass

adequate

The suite is configured to retry failing tests (frontend/editor/playwright.config.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.

Evidence
frontend/editor/playwright.config.ts:51 — test retry
02.24

11% of recent commits change more than 2,000 lines

adequate

284 of 2590 commits in the last 24 months changed over 2,000 lines of code, not counting reformatting, renames, vendored or generated code. A change that size is rarely reviewed line by line. Ask how they were reviewed, and what made them that large.

Evidence
284 commits over 2,000 lines

Product & Engineering Maturity

strong
04.17

Node.js 25 is past end of life

adequate

The code is pinned to Node.js 25 (end of life 2026-06-01). None of these receives security fixes any more; the first stopped on 2026-06-01. 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.

Evidence
docker/frontend/Dockerfile — Node.js 25, end of life 2026-06-01

Security & Reliability Posture

adequate
05.6

4 Dockerfiles run 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
docker/backend/Dockerfile — runs as root
docker/base/Dockerfile — runs as root
docker/embedded/Dockerfile — runs as root
docker/frontend/Dockerfile — runs as root
05.25

8 environment files are committed

adequate

.env, app/.env.proprietary, app/.env.saas and more are 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
.env — committed environment file
app/.env.proprietary — committed environment file
app/.env.saas — committed environment file
05.27

The build runs third-party code it does not pin

adequate

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
docker/embedded/Dockerfile:15 — download piped into a shell
05.20

4 SQL statements built from strings

adequate

4 places in product code build SQL by formatting or joining strings rather than passing parameters. 2 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.

05.26

28 locked dependencies have published vulnerabilities, 8 high or critical in what ships

adequate

28 of 1,367 locked dependencies match 52 published advisories in OSV, 20 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
frontend/package-lock.json — axios 1.18.1: GHSA-3pq3-5fj3-cg6v (high), fixed in 1.20.0
frontend/package-lock.json — http-cache-semantics 4.2.0: GHSA-ch52-4w7c-c8xp (high)
frontend/package-lock.json — react-router 7.18.1: GHSA-qwww-vcr4-c8h2 (high), fixed in 7.18.2; the advisory applies only under a condition it states
05.48

29 places insert HTML from a variable without sanitising it

adequate

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

05.60

Relicensed: Apache-2.0 → GPL-3.0 (2023-05-20) → MIT (2024-09-02)

adequate

The root licence changed 2 time(s). Code taken under earlier terms stays under them; check which terms any fork or customer relied on.

Evidence
LICENSE — Apache-2.0 from 2023-01-27
LICENSE — GPL-3.0 from 2023-05-20
LICENSE — MIT from 2024-09-02
05.61

5 files are named as enterprise-edition code

adequate

Files named `.ee.` are, by the common open-core convention, the paid edition's code, usually under a licence that is not open source even where the rest is. What the buyer may do with each part differs.

05.65

16 advisories against this project in the last 24 months, 8 high or critical

adequate

The newest was published on 2026-10-02. 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.

Evidence
2026-10-02: GHSA-3x7x-943g-269w (moderate), fixed in 3.0.0: AI create-pdf-from-html-agent skips HTML sanitization enabling WeasyPrint SSRF and local file read
2026-10-02: GHSA-pr4g-9qp2-g8j8 (moderate), fixed in 2.13.2: SVG→PDF local file read (LFI) via SVG-sanitizer and Batik same-origin bypass in Stirling-PDF
2026-10-02: GHSA-pp9g-47g3-f789 (moderate), fixed in 3.0.0: CSV formula injection in PDF-to-CSV export via /api/v1/convert/pdf/csv
2026-10-02: GHSA-mrr8-934j-4g8m (critical), fixed in v2.13.2: Remote Code Execution via H2
2026-07-30: GHSA-3xxh-mm3g-c9w5 (high), fixed in 2.9.0: Internal Service Account API Key Disclosure via Pipeline Endpoint

Observability & Operations

adequate
06.2

No structured logging library is in use

adequate

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

Evidence
searched 7,170 files for 10 structured logging libraries; 0 matched
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

1 of 4 deployed images carry no version, or `latest`

adequate

1 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 stirling-tools/stirling-pdf: 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.