Borehole · Project · free tier
tryghost/ghost
Free reading: not for reliance
940de5c · 50,000 commits · 9,326 files
Read 2026-11-08

tryghost/ghost: technical due diligence, read from its repository

What Borehole read in tryghost/ghost's code and history at 940de5c: 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 Maturityadequate
Security & Reliability Postureadequate
Observability & Operationsadequate
Fit with the Acquirernot assessable

What the repository says

  • .gitmodules:1: 2 submodule(s) this survey does not read: ghost/content/themes/casper, ghost/content/themes/source

Architecture & Codebase — including AI provenance

strong
01.6

koenig/kg-simplemde/debug/simplemde.js is 16,902 lines, 213× this codebase's median file

adequate

The median source file here is 79 lines. 34 files exceed 1,000 lines, the largest being 16,902. 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.15

1 committed .only switches other tests off

adequate

1 test file commits a focused `.only`, which runs that test and silently skips the rest of its suite. 21 skip markers across 10 of 3433 test files. Each is a failure somebody chose to stop seeing; the question is whether anyone is tracking them.

02.16

Tests are retried until they pass

adequate

The suite is configured to retry failing tests (apps/comments-ui/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.

Product & Engineering Maturity

adequate
04.3

160 direct dependencies in a single manifest

adequate

ghost/package.json declares 160 direct dependencies. Each one is a maintenance obligation, a supply-chain surface and a potential licence question that transfers with the asset. The count says nothing about whether any given dependency was a good choice; it says how many such choices a buyer inherits.

Evidence
ghost/package.json — 160 declared
apps/admin/package.json — 62 declared
apps/shade/package.json — 41 declared
apps/admin-x-framework/package.json — 17 declared

Security & Reliability Posture

adequate
05.1

3 credential-shaped strings in the tree sit in tests, examples, documentation or local development settings

adequate

Strings shaped like credentials appear only where fakes are usual: test fixtures, examples, documentation, placeholders and local stacks. They are almost always fakes. Ask someone to confirm that none of them works anywhere, because a real key in a development file is still a real key. 4 other matchs set aside: expired tokens, licence tokens a vendor verifies with a public key, or placeholder text where a key would go. None grants access to anything.

Evidence
3 cited: Stripe live key, where fakes are usual
05.5

1 credential-shaped string exists in the history

adequate

Matches for private key block were committed at some point across 20,000 commits examined (the scan stopped at its limit, so older history was not read). The files that held them are no longer in the working tree — but removal from a file is not removal from the history, and the history is what transfers with the asset. What matters is whether each was rotated after it was committed. 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. 1 other match set aside: expired tokens, licence tokens a vendor verifies with a public key, or placeholder text where a key would go. None grants access to anything.

Evidence
private key block pattern added here
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/fake-mailgun/Dockerfile — runs as root
docker/fake-upgrades/Dockerfile — runs as root
docker/ghost-dev/Dockerfile — runs as root
docker/tb-cli/Dockerfile — runs as root
05.25

2 environment files are committed

adequate

apps/comments-ui/.env, apps/portal/.env 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
apps/comments-ui/.env — committed environment file
apps/portal/.env — 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
.github/workflows/tinybird.yml:102 — download piped into a shell
05.20

2 SQL statements built from strings

adequate

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

Evidence
ghost/core/server/services/email-analytics/lib/queries.ts:418 — SQL built from a string
ghost/core/server/models/comment.js:25 — SQL built from a string
05.26

8 locked dependencies have published vulnerabilities

adequate

8 of 2,788 locked dependencies match 8 published advisories in OSV. 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.

Evidence
pnpm-lock.yaml — @tiptap/core 2.27.3: GHSA-cp6q-959q-f8rh (moderate), fixed in 3.30.4
pnpm-lock.yaml — express-brute 1.0.1: GHSA-984p-xq9m-4rjw (moderate)
pnpm-lock.yaml — glob 10.5.0: GHSA-3g3m-2fjr-6pw4 (moderate), fixed in 14.0.2
05.48

74 places insert HTML from a variable without sanitising it

adequate

74 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.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
apps/admin-x-framework/vite.config.ts:23 — source maps in a production build
apps/shade/vite.config.ts:27 — source maps in a production build
koenig/kg-unsplash-selector/vite.config.ts:17 — source maps in a production build
05.65

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

adequate

The newest was published on 2026-10-01. 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-01: GHSA-69qc-f5m6-889c (high), fixed in 6.67.0: Ghost: Stored XSS via Embed Card Previews
2026-10-01: GHSA-788w-68h3-cvxp (high), fixed in 6.67.0: Ghost: Remote Code Execution via Bookmark Card Images
2026-10-01: GHSA-9m4w-fmjw-fvjq (moderate), fixed in 6.67.0: Ghost: Regular Expression Denial of Service in External Media Inliner
2026-10-01: GHSA-fwh9-qg68-vxp4 (moderate), fixed in 6.67.0: Ghost: Regular Expression Denial of Service in Content Import
2026-10-01: GHSA-hqq2-xqr2-fmx2 (moderate), fixed in 6.67.0: Ghost : Stored XSS via SVG Files in Content Imports

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 8,460 files for 10 structured logging libraries; 0 matched

Fit with the Acquirer

not assessable

Not rated: structurally not assessable from a repository.

Read more, or read your own

The full report on tryghost/ghost: 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.