Borehole · Project · free tier
dataelement/bisheng
Free reading: not for reliance
83aa354 · 10,019 commits · 6,625 files
Read 2026-10-23

dataelement/bisheng: technical due diligence, read from its repository

What Borehole read in dataelement/bisheng's code and history at 83aa354: 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 Maturitystrong
Product & Engineering Maturityadequate
Security & Reliability Postureadequate
Observability & Operationsadequate
Fit with the Acquirernot assessable

Architecture & Codebase — including AI provenance

adequate
01.6

src/backend/bisheng/knowledge/domain/services/knowledge_space_service.py is 5,072 lines, 55× this codebase's median file

adequate

The median source file here is 91 lines. 49 files exceed 1,000 lines, the largest being 5,072. 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.

01.25

2 base images float: no version, or `latest`

adequate

2 of 5 `FROM` lines in product Dockerfiles name an image without a version, or with `latest`. Each build pulls whatever the registry serves that day, so the image that ships can change without a commit, and last month's build cannot be reproduced. Pin a version, or a digest.

Evidence
src/frontend/Dockerfile:10 — base image without a version
src/frontend/platform/Dockerfile:10 — base image without a version

Engineering Process & SDLC Maturity

strong

No finding.

Product & Engineering Maturity

adequate
04.3

107 direct dependencies in a single manifest

adequate

src/frontend/client/package.json declares 107 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

Node.js 20 is past end of life

adequate

The code is pinned to Node.js 20 (end of life 2026-04-30). None of these receives security fixes any more; the first stopped on 2026-04-30. 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
src/frontend/Dockerfile — Node.js 20, end of life 2026-04-30

Security & Reliability Posture

adequate
05.6

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

The build runs third-party code it does not pin

adequate

7 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/base_ci.yml:34 — action pinned by tag
.github/workflows/base_ci.yml:43 — action pinned by tag
05.13

29 outbound calls can wait forever

adequate

29 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
src/backend/bisheng/core/cache/utils.py:420 — outbound call without a timeout
src/backend/bisheng/utils/docx_temp.py:1579 — outbound call without a timeout
src/backend/bisheng/utils/file.py:133 — outbound call without a timeout
05.17

18 of 94 migrations cannot be rolled back

adequate

18 schema migrations (19%) have no working way back: an empty `downgrade`, a `down` that does nothing, or a data migration with no reverse. A bad deploy that includes one is recovered from a backup, not reverted. Ask when a restore was last rehearsed.

05.20

4 SQL statements built from strings

adequate

4 places in product code build SQL by formatting or joining strings rather than passing parameters. 1 of them put a value into the string; in the rest, what the code shows going in is a table or column name, a constant, or something the line does not show. Ask whether any value reaches these strings, rather than a parameter.

05.22

7 deserialisers that can run code

adequate

7 places read data with a deserialiser that executes what it reads (`yaml.load` without a safe loader, pickle). That is safe on data the system wrote itself and remote code execution on anything else. Ask where each one's input comes from.

05.26

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

adequate

53 of 2,323 locked dependencies match 135 published advisories in OSV, 72 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
src/backend/uv.lock — anyio 4.11.0: GHSA-82r6-8w77-94w6 (critical), fixed in 4.14.2
src/backend/uv.lock — certifi 2025.10.5: GHSA-6q48-6c7w-9gw2 (critical), fixed in 2026.10.19
src/backend/uv.lock — chromadb 1.3.4: GHSA-36p7-vc44-83pf (critical)
05.48

20 places insert HTML from a variable without sanitising it

adequate

20 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.65

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

adequate

The newest was published on 2026-10-15. 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 2.6.0. Answer lives in: the release you run, set against each fixed version. The record is incomplete: NVD: 5 records name bisheng with nothing tying them to this repository (CVE-2022-48230, CVE-2022-48255, CVE-2022-48259, …).

Evidence
2026-10-15: CVE-2026-111363 (high): BISHENG through 3.0.0-beta4 contains an insecure direct object reference vulnerability that allows authenticated low-privileged users to read other users' parse
2026-09-30: CVE-2026-51859 (critical): bisheng 2.3.0, 2.4.0, and 2.4.0-beta1 is vulnerable to directory traversal in save_download_file (src/backend/bisheng/core/cache/utils.py:290).
2026-09-30: CVE-2026-51860 (high): bisheng 2.3.0, 2.4.0, and 2.4.0-beta1 is vulnerable to Directory Traversal in src/backend/bisheng/linsight/domain/task_exec.py.
2026-09-30: CVE-2026-51861 (critical): bisheng 2.3.0, 2.4.0, and 2.4.0-beta1 is vulnerable to Code Injection in src/backend/bisheng/api/v1/validate.py.
2026-08-28: CVE-2026-82278 (high): BISHENG before 2.6.0 contains a remote code execution vulnerability in the workflow run_once endpoint that allows authenticated users to execute arbitrary Pytho

Observability & Operations

adequate
06.2

No structured logging library is in use

adequate

Nothing references a structured logging library. Logs that are written to be read by a person are not searchable by a machine, which means incident response here is proportional to how well someone remembers the codebase rather than to what the tooling can find.

Evidence
searched 5,885 files for 10 structured logging libraries; 0 matched
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

Fit with the Acquirer

not assessable

Not rated: structurally not assessable from a repository.

Read more, or read your own

The full report on dataelement/bisheng: 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.