Read 2026-11-07
phpoffice/phpspreadsheet: technical due diligence, read from its repository
What Borehole read in phpoffice/phpspreadsheet's code and history at 6b03c5e: 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 | strong |
| Product & Engineering Maturity | strong |
| Security & Reliability Posture | strong |
| Observability & Operations | not assessable |
| Fit with the Acquirer | not assessable |
What the repository says
license.txt: Relicensed: LGPL-3.0 → MIT (2019-11-17)
Architecture & Codebase — including AI provenance
strongsrc/PhpSpreadsheet/Reader/Xls.php is 4,923 lines, 74× this codebase's median file
adequateThe median source file here is 66 lines. 20 files exceed 1,000 lines, the largest being 4,923. 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.
src/PhpSpreadsheet/Reader/Xls.php:1 — 4,923 lines (74× median) |
src/PhpSpreadsheet/Worksheet/Worksheet.php:1 — 4,337 lines (65× median) |
src/PhpSpreadsheet/Writer/Xls/Worksheet.php:1 — 3,262 lines (49× median) |
src/PhpSpreadsheet/Reader/Xlsx.php:1 — 3,132 lines (47× median) |
src/PhpSpreadsheet/Calculation/Calculation.php:1 — 3,088 lines (46× median) |
Engineering Process & SDLC Maturity
strongNo finding.
Product & Engineering Maturity
strongNo finding.
Security & Reliability Posture
strongThe build runs third-party code it does not pin
adequate4 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.
.github/workflows/github-pages.yml:19 — action pinned by tag |
.github/workflows/github-pages.yml:30 — action pinned by tag |
2 deserialisers that can run code
adequate2 places read data with a deserialiser that executes what it reads (PHP `unserialize`). That is safe on data the system wrote itself and remote code execution on anything else. Ask where each one's input comes from.
src/PhpSpreadsheet/Spreadsheet.php:1160 — code-executing deserialiser |
src/PhpSpreadsheet/Worksheet/Worksheet.php:4058 — code-executing deserialiser |
Relicensed: LGPL-3.0 → MIT (2019-11-17)
adequateThe root licence changed 1 time(s). Code taken under earlier terms stays under them; check which terms any fork or customer relied on.
license.txt — LGPL-3.0 from 2010-08-26 |
LICENSE — MIT from 2019-11-17 |
25 advisories against this project in the last 24 months, 17 high or critical
adequateThe newest was published on 2026-10-12. 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. The record is incomplete: NVD: 2 records name PhpSpreadsheet with nothing tying them to this repository (CVE-2025-58051, CVE-2026-86020).
| 2026-10-12: GHSA-rxj4-h86g-25gc (high), fixed in 3.10.8: XmlScanner Bypass via Double-Encoded unentity() TOCTOU Allows XXE and Denial of Service |
| 2026-10-12: GHSA-3x94-m842-937c (high), fixed in 1.30.7: XmlScanner Bypass via ISO-2022 Escape Sequences Allows XXE and Denial of Service |
| 2026-10-12: GHSA-j2w7-387v-m2rq (high), fixed in 1.30.7: ODS Reader: Unbounded number-rows-repeated → CPU & Memory Exhaustion (DoS) |
| 2026-10-12: GHSA-2phh-27fw-q4gc (moderate), fixed in 1.30.7: SSRF whitelist bypass via unre-validated HTTP redirect in Drawing::setPath external image loading |
| 2026-07-19: GHSA-xh5m-36r6-47m3 (high), fixed in 1.30.6: XLS/OLE sector-chain self-loop causes memory exhaustion |
Observability & Operations
not assessableNot 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 assessableNot rated: structurally not assessable from a repository.
Read more, or read your own
The full report on phpoffice/phpspreadsheet: 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.