Read 2026-10-28
labring/fastgpt: technical due diligence, read from its repository
What Borehole read in labring/fastgpt's code and history at 381b496: 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 | adequate |
| Security & Reliability Posture | adequate |
| Observability & Operations | strong |
| Fit with the Acquirer | not assessable |
What the repository says
LICENSE:1: The licence is Apache-2.0 with terms on offering it as a serviceLICENSE: Relicensed: Apache-2.0 → Apache-2.0 with terms on offering it as a service (2023-08-11).gitmodules:1: 1 submodule(s) this survey does not read: pro
Architecture & Codebase — including AI provenance
strongprojects/app/src/pageComponents/chat/SandboxEditor/hook.tsx is 1,761 lines, 18× this codebase's median file
adequateThe median source file here is 95 lines. 21 files exceed 1,000 lines, the largest being 1,761. 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.
projects/app/src/pageComponents/chat/SandboxEditor/hook.tsx:1 — 1,761 lines (18× median) |
packages/service/core/workflow/dispatch/index.ts:1 — 1,751 lines (18× median) |
packages/web/components/common/Textarea/PromptEditor/plugins/SkillPickerPlugin/index.tsx:1 — 1,557 lines (16× median) |
packages/service/common/string/jieba/index.ts:1 — 1,533 lines (16× median) |
document/public/deploy/install.sh:1 — 1,447 lines (15× median) |
Engineering Process & SDLC Maturity
adequateAlmost no process scaffolding exists in the repository
adequateOf five ordinary markers — CI workflows, CODEOWNERS, a pull-request template, pre-commit hooks, contribution guidance — 1 is present: CI workflows. Branch protection itself is a GitHub setting rather than a file, so this is a reading of proxies and not of the rules themselves. What it does establish is that the process is not written down anywhere a new engineer would find it.
| 1 of 5 markers present across 7,515 tracked files |
11% of recent commits change more than 2,000 lines
adequate216 of 1969 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.
| 216 commits over 2,000 lines |
Product & Engineering Maturity
adequate98 direct dependencies in a single manifest
adequateprojects/app/package.json declares 98 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.
projects/app/package.json — 98 declared |
packages/service/package.json — 64 declared |
packages/web/package.json — 44 declared |
document/package.json — 22 declared |
Go 1.22 is past end of life
adequateThe code is pinned to Go 1.22 (end of life 2025-02-11). None of these receives security fixes any more; the first stopped on 2025-02-11. 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.
projects/code-sandbox/Dockerfile — Go 1.22, end of life 2025-02-11 |
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.
projects/agent-sandbox-proxy/Dockerfile — runs as root |
projects/code-sandbox/Dockerfile — runs as root |
projects/mcp_server/Dockerfile — runs as root |
projects/volume-manager/Dockerfile — runs as root |
The build runs third-party code it does not pin
adequate8 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; 3 steps pipe 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.
.forgejo/workflows/build-agent-sandbox.yml:92 — action pinned by tag |
.forgejo/workflows/build-agent-sandbox.yml:118 — action pinned by tag |
projects/agent-sandbox/Dockerfile:68 — download piped into a shell |
2 SQL statements built from strings
adequate2 places in product code build SQL by formatting or joining strings rather than passing parameters. In each, what the code shows going in is a table or column name, a constant, or something the line does not show, not a request's value. Ask whether any value reaches these strings, rather than a parameter.
packages/service/common/vectorDB/opengauss/index.ts:66 — SQL built from a string |
packages/service/common/vectorDB/pg/index.ts:93 — SQL built from a string |
84 locked dependencies have published vulnerabilities, 63 high or critical in what ships
adequate84 of 3,322 locked dependencies match 157 published advisories in OSV, 75 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.
pnpm-lock.yaml — i18next-fs-backend 2.6.0: GHSA-2933-q333-qg83 (critical), fixed in 2.6.6 |
pnpm-lock.yaml — next 15.5.27: GHSA-2464-fhr4-w9xw (critical), fixed in 15.5.28 |
pnpm-lock.yaml — next 16.3.6: GHSA-2464-fhr4-w9xw (critical), fixed in 16.4.1 |
5 places insert HTML from a variable without sanitising it
adequate5 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.
document/app/[lang]/(docs)/[...slug]/page.tsx:97 — HTML from a variable |
document/app/[lang]/(docs)/[...slug]/page.tsx:101 — HTML from a variable |
projects/app/public/js/html2pdf.bundle.min.js:2 — HTML from a variable |
15 vendored components with no licence
adequateThird-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.
document/content/guide/dataset/third-party/api_dataset.en.mdx — 1 tracked files, no licence file |
document/content/guide/dataset/third-party/api_dataset.mdx — 1 tracked files, no licence file |
document/content/guide/dataset/third-party/dingtalk_dataset.en.mdx — 1 tracked files, no licence file |
document/content/guide/dataset/third-party/dingtalk_dataset.mdx — 1 tracked files, no licence file |
document/content/guide/dataset/third-party/lark_dataset.en.mdx — 1 tracked files, no licence file |
document/content/guide/dataset/third-party/lark_dataset.mdx — 1 tracked files, no licence file |
The licence is Apache-2.0 with terms on offering it as a service
adequateLICENSE grants Apache-2.0 with terms on offering it as a service: open source; offering it over a network counts as distributing it, so a hosted product's changes must be published. The reading comes from the licence's own title and clauses. Whether the terms fit the buyer's intended use, and whether any paid licence transfers with the code, is a question for counsel and the licensor.
LICENSE:1 — 35 lines, Apache-2.0 AND LicenseRef-Terms-Service |
Relicensed: Apache-2.0 → Apache-2.0 with terms on offering it as a service (2023-08-11)
adequateThe 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.
43 advisories against this project in the last 24 months, 13 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. Whether 6 of them are fixed in the code you ship could not be told from this history: its version is only known to be at least 4.17.2. Answer lives in: the release you run, set against each fixed version.
| 2026-10-12: GHSA-qprx-ccxg-8qvc (moderate), fixed in v4.17.1: Read permission is sufficient to gain Manage via resource move |
| 2026-10-12: GHSA-frwj-pr6v-v44w (moderate), fixed in v4.17.1: A private app is readable without authentication because the Playground share id is derivable from the app id |
| 2026-10-12: GHSA-x765-6926-7xc9 (critical), fixed in v4.17.1: DNS Rebinding TOCTOU in MCP Fetch Path |
| 2026-10-12: GHSA-jmpf-pw3c-m93x (moderate), fixed in v4.17.1: Authenticated denial of service through unbounded remote-image validation concurrency |
| 2026-10-12: GHSA-877g-f2rv-7rmw (moderate), fixed in v4.17.1: Cross-team dataset file ingestion and disclosure via unbound S3 object key in collection create-from-fileId (incomplete fix of GHSA-6rxv-p43w-mmx5) |
Observability & Operations
strong1 of 1 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.
deploy/k8s/volume-manager.yaml:68 — image without a version |
1 of 1 deployments run a single replica
adequate1 deployments set `replicas: 1`, and nothing (an autoscaler, a disruption budget) adds more. Every deploy and every node drain is downtime, and the availability the buyer inherits has a ceiling.
deploy/k8s/volume-manager.yaml — replicas: 1 |
The code branches on the environment's name at 13 places
adequate13 places outside configuration test whether they are running in production or staging. Staging then does not exercise production's code, and each deploy is the first run of those branches. Differences belong in configuration the code reads, not in the code.
packages/global/common/system/constants.ts:10 — branch on the environment name |
packages/service/common/cache/index.ts:5 — branch on the environment name |
packages/service/common/cache/index.ts:31 — branch on the environment name |
Fit with the Acquirer
not assessableNot rated: structurally not assessable from a repository.
Read more, or read your own
The full report on labring/fastgpt: 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.