Borehole · Project · free tier
rocketchat/rocket.chat
Free reading: not for reliance
adb6b3b · 30,637 commits · 13,286 files
Read 2026-10-22

rocketchat/rocket.chat: technical due diligence, read from its repository

What Borehole read in rocketchat/rocket.chat's code and history at adb6b3b: 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 Maturityadequate
Security & Reliability Postureadequate
Observability & Operationsstrong
Fit with the Acquirernot assessable

What the repository says

  • Releases are cut from another branch than the one surveyed
  • apps/meteor/ee/LICENSE: Part of the code is under a separate licence: apps/meteor/ee/

Architecture & Codebase — including AI provenance

strong
01.6

packages/rest-typings/src/v1/omnichannel.ts is 4,877 lines, 128× this codebase's median file

adequate

The median source file here is 38 lines. 31 files exceed 1,000 lines, the largest being 4,877. 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
packages/rest-typings/src/v1/omnichannel.ts:1 — 4,877 lines (128× median)
packages/livechat/src/lib/emoji/emojis.ts:1 — 4,631 lines (121× median)
packages/models/src/models/Users.ts:1 — 3,423 lines (90× median)
packages/models/src/models/LivechatRooms.ts:1 — 2,782 lines (73× median)
apps/meteor/server/api/v1/users.ts:1 — 2,413 lines (63× median)

Engineering Process & SDLC Maturity

strong
02.16

Tests are retried until they pass

adequate

The suite is configured to retry failing tests (apps/meteor/tests/end-to-end/api-livechat/19-business-hours.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.

Product & Engineering Maturity

adequate
04.3

264 direct dependencies in a single manifest

adequate

apps/meteor/package.json declares 264 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.14

2 jobs are each done by more than one library

adequate

Within a single package: dates: date-fns, moment; utility belts: lodash, underscore. 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
apps/meteor/package.json — several libraries per job
ee/apps/ddp-streamer/package.json — several libraries per job
04.38

31 files still carry code deprecated more than two years ago

adequate

31 files were marked deprecated over two years ago and still are, the oldest since Apr 2022. A deprecation is a promise to remove. Ask what still depends on these, and whether removing them is scheduled.

Evidence
packages/core-typings/src/IRoom.ts — deprecated since Apr 2022
packages/core-typings/src/IMessage/IMessage.ts — deprecated since Apr 2022
packages/model-typings/src/models/IRolesModel.ts — deprecated since Jul 2022
apps/meteor/definition/externals/global.d.ts — deprecated since Aug 2022
packages/core-typings/src/ILivechatDepartmentRecord.ts — deprecated since Feb 2023
04.62

Releases are cut from another branch than the one surveyed

adequate

The newest release, 8.9.0, is not on the branch this survey read; the newest release on it is 8.8.1. The shipped product may differ from what this report describes. Survey the release branch too.

Evidence
tag 8.9.0

Security & Reliability Posture

adequate
05.27

The build runs third-party code it does not pin

adequate

2 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
scripts/check-deps.sh:77 — download piped into a shell
05.21

2 shell commands built from strings

adequate

2 places run a command through a shell (`shell=True`, `os.system`, `exec` with a template) rather than passing arguments. Where any part comes from outside, it is command injection. Ask where each one's input comes from.

05.26

29 locked dependencies have published vulnerabilities, 7 high or critical

adequate

29 of 3,484 locked dependencies match 36 published advisories in OSV, 7 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
yarn.lock — dompurify 3.4.16: GHSA-cg2g-xh64-v4q7 (critical), fixed in 3.4.17
yarn.lock — storybook 9.1.20: GHSA-f2ph-cmg5-wxc8 (critical), fixed in 9.1.21
yarn.lock — braces 3.0.3: GHSA-vfj7-8cjw-p6xm (high)
05.48

17 places insert HTML from a variable without sanitising it

adequate

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

The production build publishes source maps

adequate

The build configuration emits source maps for production, so the original source, with its comments and structure, is downloadable by every visitor. Upload them to an error tracker and keep them off the public server instead.

Evidence
apps/meteor/vite/vite.config.mts:262 — source maps in a production build
packages/css-in-js/rollup.config.mjs:41 — source maps in a production build
packages/emitter/rollup.config.mjs:13 — source maps in a production build
05.61

Part of the code is under a separate licence: apps/meteor/ee/

adequate

A directory named for a paid edition carries its own licence. That code is usually not open source even where the rest is; what the buyer may do with each part differs.

Evidence
apps/meteor/ee/LICENSE — licence: unrecognised
05.65

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

adequate

The newest was published on 2026-08-21. 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 20 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 8.8.1. Answer lives in: the release you run, set against each fixed version.

Evidence
2026-08-21: CVE-2026-65645 (moderate): Rocket.Chat in versions before 8.8.0, 8.7.1, 8.6.2, 8.5.3, 8.4.6. 8.3.8, 8.2.8, 8.1.8, and 7.10.15, the Meteor DDP methods getThreadsList and getThreadMessages
2026-08-20: GHSA-6x96-99rg-wg67 (moderate), fixed in 8.2.8: Blind Server-Side Request Forgery (SSRF) In The downloadPublicImportFile Endpoint
2026-08-20: GHSA-r3v3-v742-55j5 (moderate), fixed in 7.10.15: Arbitrary notify-user event injection via stream-notify-room-users forward (incomplete fix of GHSA-27jx)
2026-08-20: GHSA-7c6v-m68v-v73r (low), fixed in 7.10.15: sendForgotPasswordEmail Meteor Method Lacks DDP Rate Limit
2026-07-11: GHSA-4mvx-9h2h-hmg3 (moderate), fixed in 7.10.14: Broken Access Control in channels.convertToTeam Allows Unauthorized Conversion of Public Channels into Teams

Observability & Operations

strong
06.18

4 of 27 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
development/docker-compose-monitoring.yml:15 — image without a version
development/docker-compose-monitoring.yml:58 — image without a version
docker-compose-ci.yml:236 — image without a version

Fit with the Acquirer

not assessable

Not rated: structurally not assessable from a repository.

Read more, or read your own

The full report on rocketchat/rocket.chat: 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.