Read 2026-10-23
projectdiscovery/nuclei: technical due diligence, read from its repository
What Borehole read in projectdiscovery/nuclei's code and history at bc53323: 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 | adequate |
| Engineering Process & SDLC Maturity | strong |
| Product & Engineering Maturity | adequate |
| Security & Reliability Posture | adequate |
| Observability & Operations | adequate |
| Fit with the Acquirer | not assessable |
Architecture & Codebase — including AI provenance
adequatepkg/templates/templates_doc.go is 2,386 lines, 21× this codebase's median file
adequateThe median source file here is 111 lines. 4 files exceed 1,110 lines, the largest being 2,386. 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.
pkg/templates/templates_doc.go:1 — 2,386 lines (21× median) |
pkg/protocols/http/request.go:1 — 1,771 lines (15× median) |
pkg/installer/template_ownership.go:1 — 1,460 lines (13× median) |
internal/runner/runner.go:1 — 1,259 lines (11× median) |
1 base image floats: no version, or `latest`
adequate1 of 2 `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.
Dockerfile:11 — base image without a version |
Engineering Process & SDLC Maturity
strongNo finding.
Product & Engineering Maturity
adequate133 direct dependencies in a single manifest
adequatego.mod declares 133 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.
go.mod — 133 declared |
7 files still carry code deprecated more than two years ago
adequate7 files were marked deprecated over two years ago and still are, the oldest since Nov 2023. A deprecation is a promise to remove. Ask what still depends on these, and whether removing them is scheduled.
pkg/protocols/headless/headless.go — deprecated since Nov 2023 |
pkg/protocols/http/http.go — deprecated since Nov 2023 |
cmd/nuclei/main.go — deprecated since Mar 2024 |
pkg/types/types.go — deprecated since Apr 2024 |
lib/config.go — deprecated since May 2024 |
Security & Reliability Posture
adequate1 credential-shaped string in the tree sit in tests, examples, documentation or local development settings
adequateStrings shaped like credentials appear only where fakes are usual: test fixtures, examples, documentation, placeholders and local stacks. They are almost always fakes. Ask someone to confirm that none of them works anywhere, because a real key in a development file is still a real key. 1 other match set aside: expired tokens, licence tokens a vendor verifies with a public key, or placeholder text where a key would go. None grants access to anything.
| private key block, where fakes are usual |
1 Dockerfile runs 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.
Dockerfile — runs as root |
The build runs third-party code it does not pin
adequate15 third-party CI actions are referenced by a tag or branch rather than a commit, so they run whatever that tag points to on the day. 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.
.github/workflows/auto-merge.yaml:21 — action pinned by tag |
.github/workflows/auto-merge.yaml:22 — action pinned by tag |
8 outbound calls can wait forever
adequate8 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.
internal/fuzzplayground/server.go:215 — outbound call without a timeout |
internal/fuzzplayground/server.go:230 — outbound call without a timeout |
pkg/js/libs/http/http.go:204 — outbound call without a timeout |
1 SQL statement built from strings
adequate1 places in product code build SQL by formatting or joining strings rather than passing parameters. 1 of them put a value into the string; in the rest, what the code shows going in is a table or column name, a constant, or something the line does not show. Ask whether any value reaches these strings, rather than a parameter.
internal/fuzzplayground/db.go:85 — SQL built from a string |
3 locked dependencies have published vulnerabilities, 5 high or critical in what ships
adequate3 of 462 locked dependencies match 13 published advisories in OSV, 5 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.
1 vendored component 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.
pkg/external/customtemplates — 5 tracked files, no licence file |
7 advisories against this project in the last 24 months, 1 high or critical
adequateThe newest was published on 2026-07-16. 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.
| 2026-07-16: GHSA-jpf4-98qj-qr67 (moderate), fixed in 3.10.0: Nuclei: Arbitrary Command Execution via DAST Code Signature Bypass |
| 2026-07-16: GHSA-jpvm-9frm-hjcq (moderate), fixed in 3.10.0: Nuclei: Environment Variable Disclosure via Response-Derived Data in DAST/Fuzz Mode |
| 2026-07-16: GHSA-qgw5-7j4f-fg97 (moderate), fixed in 3.10.0: Nuclei: Local File Read via Workflow File-Protocol Gate Bypass |
| 2026-07-16: GHSA-vxg7-f2jj-jmqm (high), fixed in 3.10.0: Nuclei: Arbitrary Code Execution via Goja JavaScript Engine Vulnerability |
| 2026-07-16: GHSA-xhmx-w2j4-rw3q (moderate), fixed in 3.10.0: Nuclei: Local File Read via MySQL Client Sandbox Bypass |
Observability & Operations
adequateThe service logs with print: 53 calls against 7 logger calls
adequate53 `print` or `console.log` calls in the service's code, and 7 calls through a logger. Printed lines carry no level and no context, cannot be switched off, and are hard to find again in production.
internal/fuzzplayground/server.go:251 — print used for logging |
internal/server/server.go:309 — print used for logging |
internal/server/server.go:316 — print used for logging |
No 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 |
Readiness and liveness probes are identical in 1 of 1 workloads
adequateBoth probes call the same endpoint. When a dependency slows down, the liveness probe fails with the readiness probe, so the platform restarts pods that only needed taking out of rotation, and a partial outage becomes a full one. Liveness should ask whether the process is alive; readiness whether it can serve.
helm/templates/interactsh-deployment.yaml — same probe endpoint twice |
Fit with the Acquirer
not assessableNot rated: structurally not assessable from a repository.
Read more, or read your own
The full report on projectdiscovery/nuclei: 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.