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.
| Dimension | Rating |
|---|---|
| Architecture & Codebase — including AI provenance | adequate |
| Engineering Process & SDLC Maturity | strong |
| Product & Engineering Maturity | adequate |
| Security & Reliability Posture | adequate |
| Observability & Operations | adequate |
| Fit with the Acquirer | not assessable |
Architecture & Codebase — including AI provenance
adequatesrc/backend/bisheng/knowledge/domain/services/knowledge_space_service.py is 5,072 lines, 55× this codebase's median file
adequateThe 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.
src/backend/bisheng/knowledge/domain/services/knowledge_space_service.py:1 — 5,072 lines (55× median) |
src/backend/bisheng/department/domain/services/department_service.py:1 — 3,336 lines (36× median) |
src/frontend/client/src/types/chat/artifacts.ts:1 — 3,105 lines (34× median) |
src/backend/bisheng/knowledge/domain/services/knowledge_service.py:1 — 2,933 lines (32× median) |
src/backend/bisheng/channel/domain/services/channel_service.py:1 — 2,890 lines (31× median) |
2 base images float: no version, or `latest`
adequate2 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.
src/frontend/Dockerfile:10 — base image without a version |
src/frontend/platform/Dockerfile:10 — base image without a version |
Engineering Process & SDLC Maturity
strongNo finding.
Product & Engineering Maturity
adequate107 direct dependencies in a single manifest
adequatesrc/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.
src/frontend/client/package.json — 107 declared |
src/backend/pyproject.toml — 87 declared |
src/frontend/platform/package.json — 69 declared |
src/frontend/packages/ui/package.json — 13 declared |
Node.js 20 is past end of life
adequateThe 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.
src/frontend/Dockerfile — Node.js 20, end of life 2026-04-30 |
Security & Reliability Posture
adequate3 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.
src/backend/Dockerfile — runs as root |
src/frontend/Dockerfile — runs as root |
src/frontend/platform/Dockerfile — runs as root |
The build runs third-party code it does not pin
adequate7 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/base_ci.yml:34 — action pinned by tag |
.github/workflows/base_ci.yml:43 — action pinned by tag |
29 outbound calls can wait forever
adequate29 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.
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 |
18 of 94 migrations cannot be rolled back
adequate18 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.
src/backend/bisheng/core/database/alembic/versions/v2_5_0_f011_backfill_create_knowledge_web_menu.py:66 — migration with no way back |
src/backend/bisheng/core/database/alembic/versions/v2_5_1_f012_merge_heads.py:54 — migration with no way back |
src/backend/bisheng/core/database/alembic/versions/v2_5_1_f025_merge_f024_heads.py:39 — migration with no way back |
4 SQL statements built from strings
adequate4 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.
src/backend/bisheng/role/domain/services/role_service.py:893 — SQL built from a string |
src/backend/bisheng/database/models/tenant.py:519 — SQL built from a string |
src/backend/bisheng/database/models/tenant.py:537 — SQL built from a string |
7 deserialisers that can run code
adequate7 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.
src/backend/bisheng/common/utils/markdown_cmpnt/md_to_docx/utils/yaml_utils.py:7 — code-executing deserialiser |
src/backend/bisheng/core/cache/redis_conn.py:182 — code-executing deserialiser |
src/backend/bisheng/core/cache/redis_conn.py:192 — code-executing deserialiser |
53 locked dependencies have published vulnerabilities, 60 high or critical in what ships
adequate53 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.
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) |
20 places insert HTML from a variable without sanitising it
adequate20 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.
src/frontend/client/src/components/Artifacts/Mermaid.tsx:60 — HTML from a variable |
src/frontend/client/src/components/Banners/Banner.tsx:38 — HTML from a variable |
src/frontend/client/src/components/Chat/Messages/Content/Mermaid.tsx:81 — HTML from a variable |
6 advisories against this project in the last 24 months, 6 high or critical
adequateThe 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, …).
| 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
adequateNo structured logging library is in use
adequateNothing 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.
| searched 5,885 files for 10 structured logging libraries; 0 matched |
No 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 |
Fit with the Acquirer
not assessableNot 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.