Borehole · Project · free tier
foundry376/mailspring
Free reading: not for reliance
d68873f · 8,314 commits · 7,190 files
Read 2026-11-03

foundry376/mailspring: technical due diligence, read from its repository

What Borehole read in foundry376/mailspring's code and history at d68873f: 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

  • LICENSE.md: Relicensed: MIT → GPL-3.0 (2015-10-01)
  • .gitmodules:1: 1 submodule(s) this survey does not read: mailsync

Architecture & Codebase — including AI provenance

strong
01.6

app/src/quickpreview/pdfjs-4.3.136/web/viewer.mjs is 14,439 lines, 119× this codebase's median file

adequate

The median source file here is 121 lines. 6 files exceed 1,210 lines, the largest being 14,439. 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
app/src/quickpreview/pdfjs-4.3.136/web/viewer.mjs:1 — 14,439 lines (119× median)
app/src/ics-event-helpers.ts:1 — 2,050 lines (16× median)
app/internal_packages/main-calendar/lib/core/mailspring-calendar.tsx:1 — 1,615 lines (13× median)
app/internal_packages/views/lib/agent/store.ts:1 — 1,402 lines (11× median)
app/internal_packages/mcp-server/lib/mcp-tools.ts:1 — 1,385 lines (11× median)

Engineering Process & SDLC Maturity

strong

No finding.

Product & Engineering Maturity

strong

No finding.

Security & Reliability Posture

adequate
05.27

The build runs third-party code it does not pin

adequate

5 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/build-linux-arm64.yaml:45 — action pinned by tag
.github/workflows/build-linux-arm64.yaml:95 — action pinned by tag
05.21

6 shell commands built from strings

adequate

6 places run a command through a shell (`shell=True`, `os.system`, `exec` with a template) rather than passing arguments. Where any part comes from outside, it is command injection. Ask where each one's input comes from.

Evidence
app/src/default-client-helper.ts:26 — command run through a shell
app/src/default-client-helper.ts:30 — command run through a shell
app/src/default-client-helper.ts:119 — command run through a shell
05.26

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

adequate

21 of 896 locked dependencies match 44 published advisories in OSV, 21 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.

Evidence
app/package-lock.json — @simple-git/argv-parser 1.1.1: GHSA-v5rq-49vh-5v5c (critical), fixed in 2.0.1
app/package-lock.json — dompurify 3.4.16: GHSA-cg2g-xh64-v4q7 (critical), fixed in 3.4.17
app/package-lock.json — proxy-addr 2.0.7: GHSA-jqcg-44mw-7w3h (critical), fixed in 2.0.8
05.48

23 places insert HTML from a variable without sanitising it

adequate

23 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.9

6 vendored components with no licence

adequate

Third-party code is committed into this repository without any statement of the terms it arrived under. Unknown terms are harder to deal with than inconvenient ones: an awkward licence can be complied with, an absent one cannot. Each of these needs its origin established before the code changes hands.

Evidence
app/internal_packages/views/vendor/README.md — 1 tracked files, no licence file
app/internal_packages/views/vendor/manifest.json — 1 tracked files, no licence file
app/internal_packages/views/vendor/prop-types.min.js — 1 tracked files, no licence file
app/internal_packages/views/vendor/react-lowercase-alias.js — 1 tracked files, no licence file
app/internal_packages/views/vendor/recharts.min.js — 1 tracked files, no licence file
app/internal_packages/views/vendor/tailwindcss-browser.min.js — 1 tracked files, no licence file
05.60

Relicensed: MIT → GPL-3.0 (2015-10-01)

adequate

The root licence changed 1 time(s). The latest terms restrict what users, hosts or a buyer may do in ways the earlier ones did not. Code taken under the old terms stays under them, so both matter in diligence.

Evidence
LICENSE.md — MIT from 2015-02-04
LICENSE.md — GPL-3.0 from 2015-10-01
05.65

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

adequate

The newest was published on 2026-09-20. 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-09-20: GHSA-83gr-g8q8-fw32 (high), fixed in 1.17.0: Renderer-controlled arbitrary file write via Mailspring quick-preview IPC
2026-09-20: GHSA-pj5m-wc7c-mwhg (moderate), fixed in 1.17.0: Path traversal in Mailspring quick-preview file-write path validation
2026-09-20: GHSA-px2g-jhg5-c6gh (moderate), fixed in 1.17.0: Stored XSS in Mailspring attachment quick preview (unsanitized Markdown/DOCX/XLSX conversion)
2026-09-19: GHSA-2x8h-f5qm-f779 (high), fixed in 1.25.0: RCE via untrusted Slate fragment dragged into the reply editor (sanitizer trust-boundary bypass → Node-enabled <webview>)
2026-09-19: GHSA-gjr7-3mj2-cr54 (high), fixed in 1.25.0: RCE via crafted DOCX attachment preview (mammoth prototype pollution in the main process → env injection)

Observability & Operations

not assessable

Not rated: only 5 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 foundry376/mailspring: 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.