Borehole · Project · free tier
semgrep/semgrep
Free reading: not for reliance
087e93b · 10,406 commits · 12,552 files
Read 2026-10-22

semgrep/semgrep: technical due diligence, read from its repository

What Borehole read in semgrep/semgrep's code and history at 087e93b: 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 & Operationsnot assessable
Fit with the Acquirernot assessable

What the repository says

  • Releases are cut from another branch than the one surveyed
  • LICENSE: Relicensed: LGPL-2.1 → LGPL-2.1 WITH OCaml-LGPL-linking-exception (2022-04-19) → LGPL-2.1 (2022-04-27)
  • .gitmodules:1: 1 submodule(s) this survey does not read: tests/semgrep-rules

Architecture & Codebase — including AI provenance

adequate
01.6

languages/terraform/tree-sitter/semgrep-hcl/lib/parser.c is 32,024 lines, 1883× this codebase's median file

adequate

The median source file here is 17 lines. 174 files exceed 1,000 lines, the largest being 32,024. 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.25

1 base image floats: no version, or `latest`

adequate

1 of 10 `FROM` lines in product Dockerfiles name an image without a version, or with `latest`. Each build pulls whatever the registry serves that day, so the image that ships can change without a commit, and last month's build cannot be reproduced. Pin a version, or a digest.

Evidence
Dockerfile:451 — base image without a version

Engineering Process & SDLC Maturity

strong

No finding.

Product & Engineering Maturity

strong
04.62

Releases are cut from another branch than the one surveyed

adequate

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

Evidence
tag v1.182.0

Security & Reliability Posture

adequate
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
perf/config.py:96 — command run through a shell
perf/config.py:97 — command run through a shell
perf/config.py:98 — command run through a shell
05.26

19 locked dependencies have published vulnerabilities, 15 high or critical in what ships

adequate

19 of 173 locked dependencies match 37 published advisories in OSV, 17 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
libs/ocaml-tree-sitter-semgrep/lang/semgrep-grammars/package-lock.json — minimist 1.2.5: GHSA-xvch-5gv4-984h (critical), fixed in 1.2.6
cli/uv.lock — cryptography 46.0.3: GHSA-537c-gmf6-5ccf (high), fixed in 48.0.1
cli/uv.lock — protobuf 6.33.4: GHSA-7gcm-g887-7qv7 (high), fixed in 6.33.5
05.60

Relicensed: LGPL-2.1 → LGPL-2.1 WITH OCaml-LGPL-linking-exception (2022-04-19) → LGPL-2.1 (2022-04-27)

adequate

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

Evidence
LICENSE — LGPL-2.1 from 2020-01-31
LICENSE — LGPL-2.1 WITH OCaml-LGPL-linking-exception from 2022-04-19
LICENSE — LGPL-2.1 from 2022-04-27

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 semgrep/semgrep: 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.