Borehole · Project · free tier
coze-dev/coze-studio
Free reading: not for reliance
fefb05f · 392 commits · 15,305 files
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.

DimensionRating
Architecture & Codebase — including AI provenanceadequate
Engineering Process & SDLC Maturityadequate
Product & Engineering Maturityadequate
Security & Reliability Postureadequate
Observability & Operationsadequate
Fit with the Acquirernot assessable

Architecture & Codebase — including AI provenance

adequate
01.2

The repository begins with most of itself already written

adequate

The 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.

Evidence
2025-07-20T09:36:12+00:00; +1,923,430 across 14811 files; subject: "feat: manually mirror opencoze's code from bytedance"
01.6

backend/api/model/plugin_develop/plugin_develop.go is 34,323 lines, 624× this codebase's median file

adequate

The 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.

Evidence
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

adequate
02.24

7% of recent commits change more than 2,000 lines

adequate

26 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.

Evidence
26 commits over 2,000 lines

Product & Engineering Maturity

adequate
04.3

81 direct dependencies in a single manifest

adequate

frontend/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.

04.17

Go 1.24 is past end of life

adequate

The 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.

Evidence
backend/Dockerfile — Go 1.24, end of life 2026-02-10
04.19

18% of bug fixes add or change a test

adequate

Of 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.

Evidence
35 of 193
04.14

2 jobs are each done by more than one library

adequate

Within 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.

Evidence
common/_templates/rsbuild-web/package.json — several libraries per job
common/_templates/rspack-web/package.json — several libraries per job

Security & Reliability Posture

adequate
05.6

2 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
backend/Dockerfile — runs as root
frontend/Dockerfile — runs as root
05.27

The build runs third-party code it does not pin

adequate

6 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.

Evidence
.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
05.13

4 outbound calls can wait forever

adequate

4 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.

Evidence
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
05.20

1 SQL statement built from strings

adequate

1 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.

Evidence
backend/infra/oceanbase/oceanbase_official.go:86 — SQL built from a string
05.26

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

adequate

110 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.

Evidence
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
05.45

5 workload settings give a container the host

adequate

5 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.

Evidence
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
05.48

11 places insert HTML from a variable without sanitising it

adequate

11 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.

Evidence
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
05.65

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

adequate

The 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.

Evidence
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

adequate
06.9

No error reporter is wired in

adequate

Nothing 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.

Evidence
no error reporter initialised
06.18

4 of 16 deployed images carry no version, or `latest`

adequate

4 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.

Evidence
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
06.14

Readiness and liveness probes are identical in 2 of 3 workloads

adequate

Both 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.

06.33

8 of 10 deployments run a single replica

adequate

8 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.

06.17

The code branches on the environment's name at 17 places

adequate

17 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.

Fit with the Acquirer

not assessable

Not 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.