Borehole · Project · free tier
mongodb/mongo
Free reading: not for reliance
2c991c8 · 50,000 commits · 55,721 files
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.

DimensionRating
Architecture & Codebase — including AI provenancestrong
Engineering Process & SDLC Maturitystrong
Product & Engineering Maturityadequate
Security & Reliability Postureadequate
Observability & Operationsnot assessable
Fit with the Acquirernot 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

strong
01.6

jstests/auth/lib/commands_lib.js is 11,156 lines, 107× this codebase's median file

adequate

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

Evidence
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

strong

No finding.

Product & Engineering Maturity

adequate
04.19

8% of bug fixes add or change a test

adequate

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

Evidence
106 of 1362

Security & Reliability Posture

adequate
05.2

None of the standard security guard rails are configured

adequate

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

Evidence
checked 5 kinds of guard rail across 55,721 tracked files; 0 present
05.6

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

05.27

The build runs third-party code it does not pin

adequate

8 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
buildscripts/build_cargo_bazel_ppc64le.sh:33 — download piped into a shell
05.13

15 outbound calls can wait forever

adequate

15 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
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
05.21

21 shell commands built from strings

adequate

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

Evidence
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
05.22

15 deserialisers that can run code

adequate

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

Evidence
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
05.26

23 locked dependencies have published vulnerabilities, 2 high or critical in what ships

adequate

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

Evidence
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
05.9

15 vendored components with no licence

adequate

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

Evidence
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
05.66

The licence is SSPL-1.0 with additional terms: source available, not open source

adequate

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

Evidence
LICENSE-Community.txt:1 — 557 lines, SSPL-1.0 AND LicenseRef-Terms-Additional

Observability & Operations

not assessable
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 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.