Borehole · Project · free tier
topoteretes/cognee
Free reading: not for reliance
37f788b · 11,602 commits · 4,217 files
Read 2026-10-23

topoteretes/cognee: technical due diligence, read from its repository

What Borehole read in topoteretes/cognee's code and history at 37f788b: 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 provenanceadequate
Engineering Process & SDLC Maturitystrong
Product & Engineering Maturitystrong
Security & Reliability Postureadequate
Observability & Operationsstrong
Fit with the Acquirernot assessable

What the repository says

  • CONTRIBUTING.md:153: The project does not take pull requests
  • Releases are cut from another branch than the one surveyed
  • .github/pull_request_template.md:6: states a policy on AI-generated contributions
  • SECURITY.md:158: names OpenSSF

Architecture & Codebase — including AI provenance

adequate
01.6

cognee/infrastructure/databases/graph/ladybug/adapter.py is 3,972 lines, 44× this codebase's median file

adequate

The median source file here is 89 lines. 26 files exceed 1,000 lines, the largest being 3,972. 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.

01.41

4 of 6 notebooks are committed with their outputs

adequate

67% of the notebooks carry cell outputs in git, and nothing strips them before commit. Outputs bloat the history, make changes unreadable in review, and carry whatever the cells printed: data, and sometimes keys.

Evidence
notebooks/cognee_demo.ipynb — notebook with outputs
notebooks/cognee_multimedia_demo.ipynb — notebook with outputs
notebooks/cognee_simple_demo.ipynb — notebook with outputs

Engineering Process & SDLC Maturity

strong
02.16

Tests are retried until they pass

adequate

The suite is configured to retry failing tests (cognee-frontend/src/services/http/__tests__/client.test.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

strong
04.62

Releases are cut from another branch than the one surveyed

adequate

The newest pre-release, v1.6.6rc1, is not on the branch this survey read; the newest release on it is v1.6.5. The shipped product may differ from what this report describes. Survey the release branch too.

Evidence
tag v1.6.6rc1

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
cognee/eval_framework/Dockerfile — runs as root
05.20

11 SQL statements built from strings

adequate

11 places in product code build SQL by formatting or joining strings rather than passing parameters, and in 8 of them a value, not a table or column name, goes into the string. Where any of those values comes from a request, it is an injection point. Each site needs a look; the fix, parameters, is small.

05.21

4 shell commands built from strings

adequate

4 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
cognee/api/v1/ui/node_setup.py:41 — command run through a shell
cognee/api/v1/ui/node_setup.py:291 — command run through a shell
cognee/api/v1/ui/npm_utils.py:19 — command run through a shell
05.26

38 locked dependencies have published vulnerabilities, 58 high or critical in what ships

adequate

38 of 944 locked dependencies match 140 published advisories in OSV, 65 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
cognee-mcp/uv.lock — anyio 4.14.1: GHSA-82r6-8w77-94w6 (critical), fixed in 4.14.2
cognee-mcp/uv.lock — certifi 2026.6.17: GHSA-6q48-6c7w-9gw2 (critical), fixed in 2026.10.19
uv.lock — certifi 2026.7.22: GHSA-6q48-6c7w-9gw2 (critical), fixed in 2026.10.19
05.48

5 places insert HTML from a variable without sanitising it

adequate

5 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.65

3 advisories against this project in the last 24 months, 2 high or critical

adequate

The newest was published on 2026-10-04. A project that publishes advisories is telling its users about its fixes, and the count and pace say how much security work it carries. None of them affects the surveyed version.

Evidence
2026-10-04: CVE-2026-105141 (moderate): A security flaw has been discovered in topoteretes cognee up to 1.5.4. The affected element is the function get_user_id_by_email of the file cognee/modules/user
2026-07-07: GHSA-49f7-whx5-4256 (critical), fixed in 1.5.0: Cognee allows non-superusers to overwrite global LLM configuration
2026-05-12: GHSA-8pr4-p4c8-8gr9 (critical), fixed in 1.2.0: Cognee notebook cell execution endpoint passes request bodies to exec(), allowing remote code execution

Observability & Operations

strong
06.33

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

Fit with the Acquirer

not assessable

Not rated: structurally not assessable from a repository.

Read more, or read your own

The full report on topoteretes/cognee: 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.