Read 2026-10-22
mongodb/mongo: technical due diligence, read from its repository
What Borehole read in mongodb/mongo's code and history at 2c991c8: 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 | strong |
| Engineering Process & SDLC Maturity | strong |
| Product & Engineering Maturity | adequate |
| Security & Reliability Posture | adequate |
| Observability & Operations | not assessable |
| Fit with the Acquirer | not assessable |
What the repository says
LICENSE-Community.txt:1: The licence is SSPL-1.0 with additional terms: source available, not open source
Architecture & Codebase — including AI provenance
strongjstests/auth/lib/commands_lib.js is 11,156 lines, 107× this codebase's median file
adequateThe median source file here is 104 lines. 196 files exceed 1,040 lines, the largest being 11,156. 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.
jstests/auth/lib/commands_lib.js:1 — 11,156 lines (107× median) |
src/mongo/bson/column/bsoncolumn_test.cpp:1 — 10,505 lines (101× median) |
src/mongo/bson/column/bson_column_compressed_data.inl:1 — 9,424 lines (90× median) |
jstests/libs/write_concern_all_commands.js:1 — 7,041 lines (67× median) |
src/mongo/db/fts/unicode/codepoints_diacritic_map.cpp:1 — 5,491 lines (52× median) |
Engineering Process & SDLC Maturity
strongNo finding.
Product & Engineering Maturity
adequate8% of bug fixes add or change a test
adequateOf 1362 fixes in the last 24 months, 106 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.
| 106 of 1362 |
Security & Reliability Posture
adequateNone of the standard security guard rails are configured
adequateThere is no disclosure policy, no automated dependency updates, no named code owners and no pre-commit configuration. None of these is load-bearing on its own. Their collective absence says that security posture here is whatever the current team happens to remember to do, which is not a posture that survives the team changing.
| checked 5 kinds of guard rail across 55,721 tracked files; 0 present |
2 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.
buildscripts/antithesis/base_images/mongo_binaries/Dockerfile — runs as root |
buildscripts/antithesis/base_images/workload/Dockerfile — runs as root |
The build runs third-party code it does not pin
adequate8 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.
buildscripts/build_cargo_bazel_ppc64le.sh:33 — download piped into a shell |
15 outbound calls can wait forever
adequate15 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.
buildscripts/client/github.py:25 — outbound call without a timeout |
buildscripts/collect_resource_info.py:49 — outbound call without a timeout |
buildscripts/download_sys_perf_binaries.py:20 — outbound call without a timeout |
21 shell commands built from strings
adequate21 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.
bazel/hermetic_container/hermetic_container.py:382 — command run through a shell |
bazel/hermetic_container/hermetic_container.py:386 — command run through a shell |
bazel/hermetic_container/hermetic_container.py:403 — command run through a shell |
15 deserialisers that can run code
adequate15 places read data with a deserialiser that executes what it reads (`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.
bazel/resmoke/derive_suite_selectors.py:59 — code-executing deserialiser |
bazel/resmoke/derive_suite_selectors.py:258 — code-executing deserialiser |
buildscripts/config_diff.py:264 — code-executing deserialiser |
23 locked dependencies have published vulnerabilities, 2 high or critical in what ships
adequate23 of 294 locked dependencies match 76 published advisories in OSV, 49 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.
uv.lock — certifi 2026.6.17: GHSA-6q48-6c7w-9gw2 (critical), fixed in 2026.10.19; a development dependency |
uv.lock — gitpython 3.1.50: GHSA-284h-m62q-gf8w (critical), fixed in 3.1.59; a development dependency |
uv.lock — uv 0.11.13: GHSA-hq85-5cpj-mr62 (critical), fixed in 0.13.4; a development dependency |
15 vendored components with no licence
adequateThird-party code is committed into this repository without any statement of the terms it arrived under. Unknown terms are harder to deal with than inconvenient ones: an awkward licence can be complied with, an absent one cannot. Each of these needs its origin established before the code changes hands.
bazel/third_party/BUILD.bazel — 1 tracked files, no licence file |
bazel/third_party/grpc_cross_rbe.patch — 1 tracked files, no licence file |
bazel/third_party/protobuf_cross_rbe.patch — 1 tracked files, no licence file |
jstests/third_party/BUILD.bazel — 1 tracked files, no licence file |
src/third_party/IntelRDFPMathLib20U1 — 345 tracked files, no licence file |
src/third_party/boringssl_replacement — 2 tracked files, no licence file |
The licence is SSPL-1.0 with additional terms: source available, not open source
adequateLICENSE-Community.txt grants SSPL-1.0 with additional terms: source available, not open source; offering it as a service obliges publishing the whole service stack. The reading comes from the licence's own title and clauses. Whether the terms fit the buyer's intended use, and whether any paid licence transfers with the code, is a question for counsel and the licensor.
LICENSE-Community.txt:1 — 557 lines, SSPL-1.0 AND LicenseRef-Terms-Additional |
Observability & Operations
not assessableNo 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 mongodb/mongo: 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.