Read 2026-10-23
coze-dev/coze-studio: technical due diligence, read from its repository
What Borehole read in coze-dev/coze-studio's code and history at fefb05f: 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 | adequate |
| Engineering Process & SDLC Maturity | adequate |
| Product & Engineering Maturity | adequate |
| Security & Reliability Posture | adequate |
| Observability & Operations | adequate |
| Fit with the Acquirer | not assessable |
Architecture & Codebase — including AI provenance
adequateThe repository begins with most of itself already written
adequateThe first commit carries 1,923,430 lines — 85% of every line ever added. Whatever happened before that commit happened somewhere this repository cannot show you, so the early history is not available as evidence of how the system was designed.
| 2025-07-20T09:36:12+00:00; +1,923,430 across 14811 files; subject: "feat: manually mirror opencoze's code from bytedance" |
backend/api/model/plugin_develop/plugin_develop.go is 34,323 lines, 624× this codebase's median file
adequateThe median source file here is 55 lines. 125 files exceed 1,000 lines, the largest being 34,323. 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.
backend/api/model/plugin_develop/plugin_develop.go:1 — 34,323 lines (624× median) |
backend/api/model/data/database/table/table.go:1 — 33,404 lines (607× median) |
backend/api/model/marketplace/product_public_api/public_api.go:1 — 33,324 lines (605× median) |
backend/api/model/app/bot_common/bot_common.go:1 — 32,074 lines (583× median) |
backend/api/model/workflow/workflow_svc.go:1 — 17,329 lines (315× median) |
Engineering Process & SDLC Maturity
adequate7% of recent commits change more than 2,000 lines
adequate26 of 367 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.
| 26 commits over 2,000 lines |
Product & Engineering Maturity
adequate81 direct dependencies in a single manifest
adequatefrontend/packages/agent-ide/space-bot/package.json declares 81 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.
frontend/packages/agent-ide/space-bot/package.json — 81 declared |
backend/go.mod — 77 declared |
frontend/packages/agent-ide/bot-plugin/entry/package.json — 56 declared |
frontend/packages/agent-ide/entry/package.json — 51 declared |
Go 1.24 is past end of life
adequateThe code is pinned to Go 1.24 (end of life 2026-02-10). None of these receives security fixes any more; the first stopped on 2026-02-10. 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.
backend/Dockerfile — Go 1.24, end of life 2026-02-10 |
18% of bug fixes add or change a test
adequateOf 193 fixes in the last 24 months, 35 touched a test. A fix without the test that would have caught the bug can quietly come back, and the suite never learns from what went wrong.
| 35 of 193 |
2 jobs are each done by more than one library
adequateWithin a single package: CSS-in-JS: emotion, styled-components; dates: date-fns, dayjs. Each duplicate is bundle size, two ways of doing the same thing in one codebase, and two upgrade paths to maintain. It is usually the residue of a migration that stopped halfway.
common/_templates/rsbuild-web/package.json — several libraries per job |
common/_templates/rspack-web/package.json — several libraries per job |
Security & Reliability Posture
adequate2 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.
backend/Dockerfile — runs as root |
frontend/Dockerfile — runs as root |
The build runs third-party code it does not pin
adequate6 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; 4 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.
.github/workflows/ci.yml:39 — action pinned by tag |
.github/workflows/ci.yml:172 — action pinned by tag |
scripts/setup/db_migrate_apply.sh:37 — download piped into a shell |
4 outbound calls can wait forever
adequate4 HTTP calls use a client with no timeout (Python `requests` without `timeout=`, or Go's default client). When a dependency slows down, each one holds a worker until the connection gives up, and enough of them take the service down with the dependency.
backend/domain/knowledge/service/knowledge.go:1126 — outbound call without a timeout |
backend/infra/document/ocr/impl/impl.go:46 — outbound call without a timeout |
backend/infra/document/parser/impl/impl.go:43 — outbound call without a timeout |
1 SQL statement built from strings
adequate1 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.
backend/infra/oceanbase/oceanbase_official.go:86 — SQL built from a string |
110 locked dependencies have published vulnerabilities, 62 high or critical in what ships
adequate110 of 4,564 locked dependencies match 192 published advisories in OSV, 98 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.
backend/go.mod — golang.org/x/crypto v0.39.0: GHSA-5cgq-3rg8-m6cv (critical), fixed in 0.52.0 |
common/autoinstallers/plugins/pnpm-lock.yaml — handlebars 4.7.8: GHSA-2w6w-674q-4c4q (critical), fixed in 4.7.9 |
common/config/subspaces/default/pnpm-lock.yaml — jsrsasign 10.9.0: GHSA-5jx8-q4cp-rhh6 (critical), fixed in 11.1.1 |
5 workload settings give a container the host
adequate5 places in the deployment configuration run a container privileged or in the host's network, process or IPC namespace. A compromise of that container is a compromise of the machine, and most acquirers' security reviews block it. Node agents (network, storage, monitoring) are excluded.
docker/docker-compose-oceanbase.yml:45 — privileged or host namespace |
docker/docker-compose-oceanbase.yml:77 — privileged or host namespace |
docker/docker-compose-oceanbase.yml:162 — privileged or host namespace |
11 places insert HTML from a variable without sanitising it
adequate11 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.
backend/conf/admin/index.html:933 — HTML from a variable |
backend/conf/admin/index.html:1279 — HTML from a variable |
backend/conf/admin/index.html:2109 — HTML from a variable |
4 advisories against this project in the last 24 months, 4 high or critical
adequateThe newest was published on 2026-10-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. Whether 3 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 0.5.1. Answer lives in: the release you run, set against each fixed version.
| 2026-10-20: CVE-2026-77934 (high): Coze Studio before 0.5.0 contains an insecure default configuration that allows any registered user to execute commands by running workflow code nodes in an uns |
| 2026-10-20: CVE-2026-77935 (high): Coze Studio through 0.5.1 contains an insecure direct object reference vulnerability in workflow.go that allows authenticated users to access other spaces' work |
| 2026-09-16: CVE-2026-92788 (high): Coze Studio through 0.5.1 fails to validate that table names in workflow SQL customization nodes belong to the caller's workspace. Authenticated attackers can e |
| 2026-09-16: CVE-2026-92795 (high): Coze Studio through 0.5.1 fails to restrict the server URL supplied when registering plugin tools, allowing authenticated users to make the backend fetch intern |
Observability & Operations
adequateNo 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 |
4 of 16 deployed images carry no version, or `latest`
adequate4 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/docker-compose-oceanbase_debug.yml:341 — image without a version |
docker/docker-compose-oceanbase.yml:333 — image without a version |
docker/docker-compose-oceanbase.yml:364 — image without a version |
Readiness and liveness probes are identical in 2 of 3 workloads
adequateBoth probes call the same endpoint. When a dependency slows down, the liveness probe fails with the readiness probe, so the platform restarts pods that only needed taking out of rotation, and a partial outage becomes a full one. Liveness should ask whether the process is alive; readiness whether it can serve.
helm/charts/opencoze/templates/coze-web-deployment.yaml — same probe endpoint twice |
helm/charts/opencoze/templates/milvus-statefulset.yaml — same probe endpoint twice |
8 of 10 deployments run a single replica
adequate8 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.
helm/charts/opencoze/templates/elasticsearch-statefulset.yaml — replicas: 1 |
helm/charts/opencoze/templates/etcd-statefulset.yaml — replicas: 1 |
helm/charts/opencoze/templates/milvus-statefulset.yaml — replicas: 1 |
The code branches on the environment's name at 17 places
adequate17 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.
frontend/packages/agent-ide/bot-plugin/entry/src/util/get-env.ts:18 — branch on the environment name |
frontend/packages/agent-ide/bot-plugin/export/src/component/file-import/const.ts:18 — branch on the environment name |
frontend/packages/arch/bot-env-adapter/src/base.ts:41 — 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 coze-dev/coze-studio: 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.