Repository navigation
build(deps): Bump github.com/golangci/golangci-lint/v2 from 2.12.2 to 2.13.2 - #1432
Conversation
🔒 Dependency Security Audit —
|
| Module | Change | Production? |
|---|---|---|
golang.org/x/crypto |
0.54.0 → 0.55.0 | Yes — P2P/privval handshake encryption |
golang.org/x/net |
0.57.0 → 0.58.0 | Yes |
github.com/stretchr/testify |
1.11.1 → 1.12.1 | Test-only |
A reviewer auditing the crypto stack would never find this bump from its title. Worth knowing.
2. Module graph delta — 362 modules analysed
| Metric | Result |
|---|---|
| Downgrades | 0 ✅ — the primary MVS risk, explicitly checked |
| Upgrades | 44 |
| Added / Removed | 3 / 3 |
A dependency bump that silently drags a shared module backwards below a patched version is the failure mode that matters here. There are none.
3. Supply-chain integrity — CLEAN
A changelog is a claim, not evidence. Checked independently:
| Check | Result |
|---|---|
Every changed go.sum hash vs. sum.golang.org transparency log |
Byte-for-byte match ✅ |
go mod tidy -diff |
Exit 0, empty output — nothing smuggled in beyond what tidy generates ✅ |
GOSUMDB / GOPRIVATE / GOFLAGS |
sum.golang.org, unset, unset — no verification bypass ✅ |
| PR provenance | Single GPG-verified commit, author dependabot[bot] ✅ |
Module ownership change — investigated, not waved through.
github.com/lasiar/canonicalheader v1.1.2 → github.com/golangci/canonicalheader v0.0.0-20260827115959. A module path changing owner is a textbook supply-chain red flag, so it was run down:
golangci/canonicalheaderis a genuine GitHub fork oflasiar/canonicalheader, owned by thegolangciOrganization, created2026-08-27T11:44:36Z— matching the pseudo-version timestamp exactly.- Introduced upstream by golangci-lint PR #6761, authored and merged by
ldez, a core maintainer. - Checksum present and matching in the public sumdb.
Legitimate upstream fork. Not a hijack. ✅
Also noted: dlclark/regexp2 v1 → /v2 v2.2.1 (a backtracking, ReDoS-capable regex engine) — confined to the lint/TUI path, absent from the production graph. pmezard/go-difflib drops out because testify 1.12 vendored it; two fewer unmaintained modules in the graph.
4. Dependency code review — not just release-note titles
120 commits between v2.12.2 and v2.13.2, overwhelmingly dependency bumps and linter updates. The one substantive non-dependency change was read line by line:
fix: decrease cache entropy(#6762)
It makes lint cache keys module-relative instead of absolute. The concern worth raising is whether weaker cache keying could let a stale cache mask gosec findings in CI. It cannot: file content hashes remain in the key (fmt.Fprintf(key, "file %s %x\n", f, h)), guarded by isCurrentModule() and a ..-escape check. Cache-key integrity is preserved. ✅
5. Vulnerability research
Sources: OSV.dev (batch query across all 362 resolved modules), GitHub Advisory DB, repository Dependabot alerts, upstream release notes, sum.golang.org.
⚠️ govulncheckwas NOT treated as evidence here. It fails to load packages in this repo (cgo —dashpay/bls-signaturesneedsdashbls/bls.hpp, absent locally). A "clean govulncheck" was therefore never actually available to me, so full-graph OSV scanning was used instead. CI's owngovulncheckjob passes and covers that gap.
Three hits across 362 modules:
| ID | Severity | Module @ version | Changed by this PR? | Applies? |
|---|---|---|---|---|
GO-2026-5932 |
Info | x/crypto 0.55.0 |
Bumped (forward) | No — crypto/openpgp unmaintained-package advisory. Imported nowhere (verified by grep and go list -deps). Affects all versions; pre-existing. |
GO-2026-6094 |
Medium | cel-go 0.29.2 |
No — unchanged | Pre-existing, indirect. JSON private fields exposed via NativeTypes/ParseStructTag; fixed in 0.30.0. Go-DB-only, so absent from GitHub's alert set. |
GHSA-vp52-pcj8-j9qc |
High | grpc 1.82.1 |
No — unchanged | Pre-existing and real — see §6. |
Clean, no known vulnerabilities: golangci-lint 2.13.2, x/net 0.58.0, testify 1.12.1.
Direction of travel is favourable. x/crypto 0.54.0 carries a live CVE — CVE-2026-56854 / GO-2026-6303 (source-address critical option not enforced for non-public-key auth callbacks), plus several unregistered SSH fixes: a nested-certificate stack overflow that recover cannot catch (CWE-674, unauthenticated remote DoS) and a fail-open empty source-address option (CWE-863). All confined to ssh/, which is absent from our build graph — so we were never exposed. Merging retires the advisory from the ledger rather than carrying it.
6. Pre-existing finding — NOT introduced here, NOT a blocker for this PR
SEC-001 [HIGH] — gRPC heap-exhaustion DoS — GHSA-vp52-pcj8-j9qc
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
An unauthenticated remote attacker fragments a payload into millions of 1-byte HTTP/2 DATA frames; per-fragment tracking overhead inflates the heap until OOM/panic. Affects all grpc-go < 1.83.1; this repo resolves 1.82.1.
Exposure is not theoretical — we run network-facing gRPC servers:
abci/server/grpc_server.go:46→grpc.NewServer()cmd/priv_val_server/main.go:126→grpc.NewServer(opts...)— the validator signing path, and the one I like least.
Confirmed open in the repository's Dependabot alerts (high). Remediation already exists: PR #1433 bumps grpc → 1.83.2. I would merge that one ahead of this one.
7. Observation — this bump changes nothing that actually runs
SEC-002 [MEDIUM] — security-lint tooling drift. Three golangci-lint versions coexist, none agreeing:
| Location | Version | What it is |
|---|---|---|
go.mod:371 + tools/tools.go:12 |
v2.13.2 | what this PR bumps |
.github/workflows/lint.yml:63 |
v2.12 | what CI actually runs — the merge gate |
Makefile:279 (make lint) |
v2.8 | what contributors actually run |
This bump raises the bundled SAST scanner securego/gosec 2.26.1 → 2.28.0 (verified against upstream go.mod at both tags). Because CI pins the v2.12 release binary, that gosec upgrade never executes. The PR creates the appearance of refreshed security tooling while the gate keeps running gosec 2.26.1; make lint is older still.
Not a vulnerability, and not a reason to hold this PR — but no one should credit it with improved SAST coverage. Note that simply pointing CI at go.mod will not work today: go.mod:254 pins denis-tingaikin/go-header v1.0.0 as a direct requirement while golangci-lint needs v0.5.0, and MVS selects the incompatible v1.0.0. That stale requirement needs dropping first.
.golangci.yml was validated against the JSON schema shipped in v2.13.2 — zero errors; canonicalheader is not referenced, so the module move is inert here.
Verdict
Zero new vulnerabilities. Zero downgrades. Full checksum-transparency verification. Two production crypto/net dependencies moved forward, retiring a live x/crypto CVE from the ledger. All 17 CI checks green.
Merging on security grounds. Follow-ups worth raising separately: prioritise #1433 (SEC-001), then converge the three linter pins (SEC-002).
🍬 Tally: 2 findings — 0 CRITICAL, 1 HIGH (pre-existing, fix already in #1433), 1 MEDIUM (pre-existing process drift), plus 1 Medium and 1 Informational advisory catalogued as not-applicable.
🤖 Co-authored by Claudius the Magnificent AI Agent
|
@dependabot rebase |
|
Sorry, only users with push access can use that command. |
Bumps [github.com/golangci/golangci-lint/v2](https://github.com/golangci/golangci-lint) from 2.12.2 to 2.13.2. - [Release notes](https://github.com/golangci/golangci-lint/releases) - [Changelog](https://github.com/golangci/golangci-lint/blob/main/CHANGELOG.md) - [Commits](golangci/golangci-lint@v2.12.2...v2.13.2) --- updated-dependencies: - dependency-name: github.com/golangci/golangci-lint/v2 dependency-version: 2.13.2 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]>
e7d6632 to
a3a4fef
Compare
Bumps github.com/golangci/golangci-lint/v2 from 2.12.2 to 2.13.2.
Release notes
Sourced from github.com/golangci/golangci-lint/v2's releases.
... (truncated)
Changelog
Sourced from github.com/golangci/golangci-lint/v2's changelog.
... (truncated)
Commits
27774aachore: prepare release61b35d6fix: decrease cache entropy (#6762)c2bc9bfbuild(deps): github.com/lasiar/canonicalheader from v1.1.2 to a fork (#6761)f34e0bbbuild(deps): bump docker/setup-buildx-action from 4.2.0 to 4.3.0 in the githu...9af7a18build(deps): bump github.com/stretchr/testify from 1.12.0 to 1.12.1 in /scrip...03da382build(deps): bump mvdan.cc/unparam to 2fa3d841b0c8 (#6756)1b90727build(deps): bump github.com/uudashr/iface from 1.5.0 to 1.5.1 (#6749)6fb5deebuild(deps): bump honnef.co/go/tools from 0.8.0 to 0.8.1 (#6748)f84535edocs: fix changelog (#6743)2d351a1docs: update GitHub Action assets (#6741)