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.
| Dimension | Rating |
|---|---|
| Architecture & Codebase — including AI provenance | strong |
| Engineering Process & SDLC Maturity | adequate |
| Product & Engineering Maturity | strong |
| Security & Reliability Posture | adequate |
| Observability & Operations | adequate |
| Fit with the Acquirer | not 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 codeREADME.md:17: names OpenSSF
Architecture & Codebase — including AI provenance
strongapp/core/src/main/java/stirling/software/SPDF/service/PdfJsonConversionService.java is 6,959 lines, 79× this codebase's median file
adequateThe 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.
app/core/src/main/java/stirling/software/SPDF/service/PdfJsonConversionService.java:1 — 6,959 lines (79× median) |
app/common/src/main/java/stirling/software/common/util/FormUtils.java:1 — 4,107 lines (46× median) |
app/core/src/main/java/stirling/software/SPDF/controller/api/converters/ConvertPDFToPDFA.java:1 — 2,714 lines (30× median) |
frontend/editor/src/core/components/filesPage/FileGrid.tsx:1 — 2,409 lines (27× median) |
frontend/editor/src/core/services/pdfiumService.ts:1 — 2,220 lines (25× median) |
Engineering Process & SDLC Maturity
adequateTests are retried until they pass
adequateThe 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.
frontend/editor/playwright.config.ts:51 — test retry |
11% of recent commits change more than 2,000 lines
adequate284 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.
| 284 commits over 2,000 lines |
Product & Engineering Maturity
strongNode.js 25 is past end of life
adequateThe 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.
docker/frontend/Dockerfile — Node.js 25, end of life 2026-06-01 |
Security & Reliability Posture
adequate4 Dockerfiles run 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.
docker/backend/Dockerfile — runs as root |
docker/base/Dockerfile — runs as root |
docker/embedded/Dockerfile — runs as root |
docker/frontend/Dockerfile — runs as root |
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.
.env — committed environment file |
app/.env.proprietary — committed environment file |
app/.env.saas — committed environment file |
The build runs third-party code it does not pin
adequate1 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.
docker/embedded/Dockerfile:15 — download piped into a shell |
4 SQL statements built from strings
adequate4 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.
engine/src/stirling/documents/sqlite_vec_store.py:329 — SQL built from a string |
engine/src/stirling/documents/sqlite_vec_store.py:340 — SQL built from a string |
engine/src/stirling/documents/sqlite_vec_store.py:336 — SQL built from a string |
28 locked dependencies have published vulnerabilities, 8 high or critical in what ships
adequate28 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.
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 |
29 places insert HTML from a variable without sanitising it
adequate29 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.
.claude/skills/ui-before-after/montage-template.html:69 — HTML from a variable |
.claude/skills/ui-walkthrough/report-template.html:256 — HTML from a variable |
app/core/src/main/resources/static/mobile-upload.html:440 — HTML from a variable |
Relicensed: Apache-2.0 → GPL-3.0 (2023-05-20) → MIT (2024-09-02)
adequateThe root licence changed 2 time(s). Code taken under earlier terms stays under them; check which terms any fork or customer relied on.
5 files are named as enterprise-edition code
adequateFiles 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.
16 advisories against this project in the last 24 months, 8 high or critical
adequateThe 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.
| 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
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 7,170 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 |
1 of 4 deployed images carry no version, or `latest`
adequate1 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.
docker/embedded/compose/docker-compose-latest-security-remote-uno.yml:78 — 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 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.