Skip to content

fix(deps): update vulnerable Go dependencies - #1574

Merged
lklimek merged 7 commits into
masterfrom
fix/update-security-dependencies
Oct 30, 2026
Merged

lklimek merged 7 commits into
masterfrom
fix/update-security-dependencies

Conversation

@lklimek

@lklimek lklimek commented Oct 30, 2026 •

Copy link
Copy Markdown
Collaborator

TL;DR: Updates Tenderdash's Go dependency set to remove all known reachable dependency vulnerabilities on top of the merged Go 1.27.3 hotfix.

User story

As a Tenderdash operator, I want production dependencies to include their current security fixes, so exposed RPC, gRPC, networking, identity parsing, and signature paths do not retain known vulnerabilities.

Scenario

Base flow

Tenderdash v1.8.1 builds and runs with the dependency versions recorded in go.mod and go.sum.

Actual behavior

govulncheck finds five reachable HTTP/2 vulnerabilities through golang.org/x/net v0.59.0. The dependency graph also contains the vulnerable moby/sys/user v0.4.0, while btcec v2.5.1 contains additional signature-validation hardening already proposed for v1.8-dev.

Expected behavior

Tenderdash uses patched dependency versions and a combined scan with Go 1.27.3 reports no reachable or imported-package vulnerabilities.

Detailed discussion

What was done

  • Updated golang.org/x/net to v0.62.0, clearing the five reachable HTTP/2 advisories fixed since v0.59.0 and the later module-level HTML advisories.
  • Updated the required companion golang.org/x/* modules to their compatible versions.
  • Backported moby/sys/user v0.4.1 from v1.8-dev for CVE-2026-61801.
  • Updated btcec to v2.5.1 and its secp256k1 dependency to v4.4.1 for upstream validation hardening.
  • Refreshed and verified go.sum with go mod tidy and go mod verify.

An independent source-level security review found no cryptographic behavior change in Tenderdash's ECDSA path and rated the aggregate update low risk.

The documentation-only VuePress 1 dependency tree is not shipped in Tenderdash binaries. Its latest theme release remains vulnerable and npm's suggested downgrade is not a valid remediation; eliminating those alerts requires a separate documentation migration rather than a lockfile security bump.

Testing

  • GOTOOLCHAIN=go1.27.3+auto make test
  • GOTOOLCHAIN=go1.27.3+auto go mod verify
  • govulncheck v1.9.0 ./... on the combined tree with Go 1.27.3: 0 reachable vulnerabilities and 0 vulnerabilities in imported packages.
  • The only remaining module-level report is GO-2026-5932 for unimported golang.org/x/crypto/openpgp; upstream provides no fixed version and Tenderdash does not import that package.
  • After merging the current master, three unrelated timing/load-sensitive tests failed in one full-suite run and each passed immediately when repeated in isolation.

Breaking changes

None.

Prior work

Attribution

🤖 Co-authored by Claudius the Magnificent AI Agent

Update the Go dependency set to clear known reachable HTTP/2
vulnerabilities and apply additional identity and signature validation
hardening already reviewed on v1.8-dev.

Co-Authored-By: Claude GPT-5 <[email protected]>
@coderabbitai

coderabbitai Bot commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@thepastaclaw

thepastaclaw commented Oct 30, 2026 •

Copy link
Copy Markdown

🕓 Review not started yet because the new head is waiting for the 30-minute push debounce.

  • Request normal review — click when the PR is ready for review.
  • Request priority review — click to move this review to the front of the queue.

Commit 8407997. Normal review starts when eligible; priority review starts as soon as a slot is available.

@lklimek
lklimek marked this pull request as ready for review October 30, 2026 08:34
Backport the Go 1.27.3 toolchain pins from v1.8-dev and align the
remaining vet workflow pin with the repository minimum.

Co-Authored-By: Claude GPT-5 <[email protected]>
@lklimek
lklimek marked this pull request as draft October 30, 2026 08:36
lklimek and others added 2 commits October 30, 2026 08:38
Align Go pins across CI, the BLS action, Dockerfiles and documentation,
including the vet workflow left on Go 1.26.6.

Pin golangci-lint v2.15.0 in CI, Makefile and go.mod, and update its
required module graph. Upgrade govulncheck to v1.9.0.

Upgrade both mockery pins to v3.8.1 for Go 1.27.2 export-data support
and regenerate mocks. The generated changes only mark mock constructors
and cleanup callbacks as test helpers; protobuf output is unchanged.

Validation: build, lint, vet, vulncheck, mock/protobuf generation and
selected race tests pass. One initial wall-clock load assertion failed;
the consensus package passes on retry and the isolated load test passes
10/10 runs on both Go 1.27.1 and Go 1.27.2.

<sub>🤖 Co-authored by [Claudius the Magnificent](https://github.com/lklimek/claudius) AI Agent</sub>

Co-authored-by: Codex GPT-6 <[email protected]>
Restore the exact golangci-lint v2.15.0 pins and compatible module
graph from the v1.8-dev backport after resolving the Go version
cherry-pick conflicts.

Co-Authored-By: Claude GPT-5 <[email protected]>
@lklimek
lklimek marked this pull request as ready for review October 30, 2026 08:52
@lklimek

lklimek commented Oct 30, 2026

Copy link
Copy Markdown
Collaborator Author

go update that addresses remaining issues is in #1575

Resolve the dependency security update against the Go 1.27-compatible
tooling backport so govulncheck evaluates both halves of the emergency
update together.

Co-Authored-By: Claude GPT-5 <[email protected]>
@lklimek
lklimek marked this pull request as draft October 30, 2026 08:59
…-dependencies

# Conflicts:
#	go.mod
#	go.sum
@lklimek
lklimek marked this pull request as ready for review October 30, 2026 11:01
@lklimek
lklimek enabled auto-merge (squash) October 30, 2026 11:03
@lklimek
lklimek disabled auto-merge October 30, 2026 11:04
@lklimek
lklimek enabled auto-merge (squash) October 30, 2026 11:08
@lklimek
lklimek merged commit 6895901 into master Oct 30, 2026
20 checks passed
@lklimek
lklimek deleted the fix/update-security-dependencies branch October 30, 2026 12:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants