Borehole · Project · free tier
langbot-app/langbot
Free reading: not for reliance
db17132 · 5,640 commits · 4,465 files
Read 2026-11-03

langbot-app/langbot: technical due diligence, read from its repository

What Borehole read in langbot-app/langbot's code and history at db17132: 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 provenancestrong
Engineering Process & SDLC Maturitystrong
Product & Engineering Maturitystrong
Security & Reliability Postureadequate
Observability & Operationsadequate
Fit with the Acquirernot assessable

What the repository says

  • LICENSE: Relicensed: AGPL-3.0 → Apache-2.0 (2025-09-13)

Architecture & Codebase — including AI provenance

strong
01.6

web/src/i18n/locales/es-ES.ts is 4,067 lines, 31× this codebase's median file

adequate

The median source file here is 128 lines. 44 files exceed 1,280 lines, the largest being 4,067. 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
web/src/i18n/locales/es-ES.ts:1 — 4,067 lines (31× median)
web/src/i18n/locales/ru-RU.ts:1 — 4,019 lines (31× median)
web/src/i18n/locales/ja-JP.ts:1 — 4,006 lines (31× median)
web/src/i18n/locales/en-US.ts:1 — 3,995 lines (31× median)
web/src/i18n/locales/vi-VN.ts:1 — 3,976 lines (31× median)

Engineering Process & SDLC Maturity

strong
02.16

Tests are retried until they pass

adequate

The suite is configured to retry failing tests (web/playwright.config.ts). A retry turns a flaky test green without saying why it failed, so a green build means the tests passed eventually. Ask how many retries a typical run needs, and which tests need them.

Evidence
web/playwright.config.ts:7 — test retry

Product & Engineering Maturity

strong

No finding.

Security & Reliability Posture

adequate
05.6

1 Dockerfile runs 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
Dockerfile — runs as root
05.25

2 environment files are committed

adequate

plugins/misc/FAQManager/.env, skills/skills/.env are tracked in git. Environment files are where credentials usually live, and committing one usually means nobody decided how secrets reach the running application. Whatever is in it is in the history for good. Check 05.1 says whether it holds anything credential-shaped.

Evidence
plugins/misc/FAQManager/.env — committed environment file
skills/skills/.env — committed environment file
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. 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/build-dev-image.yaml:30 — action pinned by tag
.github/workflows/build-dev-image.yaml:43 — action pinned by tag
05.17

23 of 73 migrations cannot be rolled back

adequate

23 schema migrations (32%) 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.22

5 deserialisers that can run code

adequate

5 places read data with a deserialiser that executes what it reads (pickle, `yaml.load` without a safe loader). 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

25 locked dependencies have published vulnerabilities, 27 high or critical in what ships

adequate

25 of 1,169 locked dependencies match 72 published advisories in OSV, 30 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
plugins/Runner/LocalAgent/uv.lock — anyio 4.13.0: GHSA-82r6-8w77-94w6 (critical), fixed in 4.14.2
plugins/Runner/LocalAgent/uv.lock — certifi 2026.4.22: GHSA-6q48-6c7w-9gw2 (critical), fixed in 2026.10.18
uv.lock — chromadb 1.5.9: GHSA-36p7-vc44-83pf (critical)
05.48

34 places insert HTML from a variable without sanitising it

adequate

34 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.60

Relicensed: AGPL-3.0 → Apache-2.0 (2025-09-13)

adequate

The root licence changed 1 time(s). Code taken under earlier terms stays under them; check which terms any fork or customer relied on.

Evidence
LICENSE — AGPL-3.0 from 2022-12-10
LICENSE — Apache-2.0 from 2025-09-13
05.65

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

adequate

The newest was published on 2026-10-19. 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 1 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.11.4. Answer lives in: the release you run, set against each fixed version.

Evidence
2026-10-19: CVE-2026-112265 (high): LangBot through 4.11.0 contains a missing authenticity verification vulnerability that allows unauthenticated attackers to inject forged Lark/Feishu events by s
2026-09-14: CVE-2026-90938 (high): LangBot's plugin runtime (pip package langbot_plugin) through 0.4.17 starts a debug WebSocket server on 0.0.0.0:5401 (/plugin/ws) whose authentication is gated
2026-09-13: CVE-2026-90562 (critical): LangBot before 4.10.11 generates password recovery keys with only 24 bits of entropy and applies no rate limiting to the unauthenticated reset-password endpoint
2026-07-31: GHSA-m7qm-2mjr-2h4q (high): Unauthenticated debug WebSocket on plugin runtime (port 5401) allows registering arbitrary plugins to read and inject all IM message traffic
2026-06-04: GHSA-3pvh-63gf-j9mw (high): LangBot: Authenticated RCE Via MCP Configuration

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 3,405 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
06.18

1 of 1 deployed images carry no version, or `latest`

adequate

1 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.yaml:98 — image without a version
06.14

Readiness and liveness probes are identical in 1 of 2 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.

Evidence
docker/kubernetes.yaml — same probe endpoint twice
06.33

1 of 1 deployments run a single replica

adequate

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

Evidence
docker/kubernetes.yaml — replicas: 1

Fit with the Acquirer

not assessable

Not rated: structurally not assessable from a repository.

Read more, or read your own

The full report on langbot-app/langbot: 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.